I want to have a global error handling method for ajax calls, this is what I have now:
$.ajaxSetup({
error: function (XMLHttpRequest, textStatus, errorThro
I had the same issue here, and what I did as solution was to set an "aborting" var just before the call of abort(), as below:
aborting = true;
myAjax.abort();
and only show the error on the error handler of the ajax request, if abort isn't true.
$.ajax({
[..]
error: function() {
if ( !aborting ) {
// do some stuff..
}
aborting = false;
}
});