Arun Nandha Arun Nandha - 5 months ago 39
Javascript Question

ajax request is not stopping

here is my ajax call

url: "AutoRFQ_Vendors_ST.aspx/BindVesselGrid",
type: "POST",
timeout: 3000,
data: JSON.stringify(sendingdata),
contentType: "application/json",
success: function (data) {
//do something

here is my css loader

ajaxStart: function () { $body.addClass("loading"); },
ajaxStop: function () { $body.removeClass("loading"); }

when i make a ajax call which respond
an empty string but my
event is not firing any idea.
Thanks in advane


You have to hide your loader on ajax() complete like:

    complete: function(){

complete executes after either the success or error callback were executed.