Arun Nandha Arun Nandha - 1 year ago 77
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

Answer Source

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

    complete: function(){

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download