/ Published in: JavaScript
For an ajax chat... or similar
Expand |
Embed | Plain Text
//I saw it in a Paul Irish's video //http://net.tutsplus.com/tutorials/javascript-ajax/10-things-i-learned-from-the-jquery-source/ //Similar to setInterval, but with more performance :P (function loopAjaxFunction(){ doStuff();//We can stop here the loop... or not $("#update").load("checkmsgs.php", function(){ loopAjaxFunction(); }); })();
You need to login to post a comment.
