Long polling…really

TournGugGroor

New Member
I am studying the ajax long polling but I am confused. what is different in traditional ajax calls and long polling \[code\] var lpOnComplete = function(response) { alert(response); // do more processing lpStart(); }; var lpStart = function() { $.post('/path/to/script', {}, lpOnComplete, 'json'); }; $(document).ready(lpStart);\[/code\]this example is just calling in recursive manner to the server.. what is different than the traditional call in setInterval..
 
Back
Top