I actually make several ajax calls, but I want some ajax calls to complete first and set the atsk defined in its stop.but function, and some ajax call should be executed after the function defined in the stop method is executed, and these ajax calls shouldn't .stop again
$('.badgeContainer').ajaxStop(function() { alert("ajax rqst completed"); }); $.ajax({ type: "POST", url: "WebServices/abc.asmx/dosomething", data: "{ }", contentType: "application/json; charset=utf-8", dataType: "json", success: function(serviceReply) { var serviceReplyArray = serviceReply.d.split("#"); }, error: function(xhr, errDesc, exception) { } });
another ajax call is here, but this time should not be called .ajaxstop
I ask my question this way:
Suppose there are two ajax calls for a webservice. when one ajax call completes a taht-dependent function, the ajax call must be executed before waiting for the second jax call to complete. For eaxample: one ajax call creates a diagram and other user actions in the ajax call log. If the functionality for displaying chaet depends on the creation diagram, so the function will be executed before the aax-call for the log actions is called. Without waiting for ajaj call for user actions
source share