actually i 'm calling multiple ajax calls but i want some ajax calls completes first and exectute the atsk defined in its stop function.but some ajax call should be made once function defined in stop method executes and those ajax call should not cal.stop method once 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 here but should not call .ajaxstop this time
i'm putting my question in this way:
suppose there are two ajax call to webservice. when one ajax call completes the function dependent on taht ajax call should get executed before waiting for second jax call execution.for eaxample: one ajax call create chart and other ajax call log user activities.if a functon to display chaet is dependent on create chart so that function get executed before calling aax call for log activities.no waiting for ajajx call for user activities