Commits

Alexander Dahl  committed aa809d4 Draft

issue ajax calls not only once

  • Participants
  • Parent commits 0573e6e

Comments (0)

Files changed (2)

File page295/finishers.xml

 		<gender>m</gender>
 		<time>28:24</time>
 	</runner>
+	<runner>
+		<fname>Justin</fname>
+		<lname>Jones</lname>
+		<gender>m</gender>
+		<time>29:14</time>
+	</runner>
 </finishers>

File scripts/page295.js

     });
 }
 
+function startAJAXcalls() {
+    var FREQ = 10000;
+    setTimeout( function() {
+            getXMLRacers();
+            startAJAXcalls();
+        },
+        FREQ
+    );
+}
+
 jQuery(document).ready(function(){
     getXMLRacers();
+    startAJAXcalls();
 });