javascript - jQuery Recursive Function -
I am trying to write a recursive jQuery statement that captures some data and populates the field. Although I do not want the next command to be completed until it is turned on. I am trying to put down, although it does not have to be done in the second run. Is there something that I'm doing wrong?
I am doing this:
var arg = new array (); Arg [0] = 'id0'; Arg [1] = 'id1'; Arg [2] = 'id2'; Arg [3] = 'id3'; Arg = 4] = 'id4'; Arg = [5] = 'id5'; Grab song ('toggle = 0', RGR, 0); Function bubblemetrics (url, locationAry, num) {warning (number); $ Ajax ({type: "post", url: "foo.php", data: url, success: function ($ this) {$ ("#" + locationAry [num]). Text ($ this); if (num & Lt; 5) {num ++; grabMetrics ('toggle =' + num, locationAry, num);}}}); }
Thank you in advance!
Change it:
if (num> 5) {
on:
if (num> <5) {
Comments
Post a Comment