I’m making long polling ajax requests to my server
$.ajax({
url: "someurl.com",
success: function(resp) { ... },
error: function() { ... }
});
but if there is some internet connection problems for a short period of time
Firefox 10 aborts the request and hence my script doesn’t receive response from the server
(in older versions of FF there were no such request aborting).
How can I found out that my ajax request was aborted by browser? Maybe there are some event for it? Or can I force browser not to abort my ajax requests if the network connection is down?
For XMLHTTPRequest, it gives status
"0"saying thatrequest not initialized. You can catch that status and know thatreqhas been aborted.