Trying to delay a jQuery post -


i have post code inside loop (while i<10) , trying delay each post 5 sec instead doing delaying 5 sec , sends 10 posts @ once

is there way interval or delay each post in jquery or ajax inside loop?

    $(document).ready(function() {                 settimeout(function(){             $.post("trigger.aspx", { phone: phoneval,             sms: smsval }, function(data) {                 $('.result').html(data);             });             },5000);             return false;     }); 

as far remember jquery's ajax call has beforesend function maybe addressed problem


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -