I have the following problem in Chrome: if I click anchor at page during ajax request (which redirects me to other page), error handler is invoked. I'd like to determine whether it is real error or not.
- abort handler is not invoked
- error is empty
- xhr.status is 0
- xhr.statusText is "error"
Code:
$.ajaxSetup({
error: function (xhr, status, error) {
...
},
abort: function () {
...
}
});