Currently, I am running an ajax call to test the timeout function on my server. To see if it works properly, I intentionally suspended my server. Despite receiving a timeout message in the client after one second, the call persists in Firebug.
I have searched for a way to halt the call execution but have not had any luck finding a solution.
$.ajax({
url: url,
dataType: "jsonp",
jsonp: "jsoncallback",
timeout: 1000,
success: (function(w) {
...
},
error: function(XHR, textStatus, errorThrown) {
alert("Error");
}
});
Any assistance would be greatly appreciated.