Hi, I have an ASP page, which on load fires a bunch of AJAX calls. How can I detect in javascript that all AJAX calls finished? The ajax calls are made using AJAXPRO library.
I need this in order to execute some event.
Thanks,
Adrian
Hi, I have an ASP page, which on load fires a bunch of AJAX calls. How can I detect in javascript that all AJAX calls finished? The ajax calls are made using AJAXPRO library.
I need this in order to execute some event.
Thanks,
Adrian
You can use the ajaxStop global event:
- ajaxStop (Global Event)
This global event is triggered if there are no more Ajax requests being processed.
Example:
$(document).bind("ajaxStop", function(){
alert("ajax requests have ended!");
});