I have a global error handler for AJAX errors:
$(document).ready(function() {
$(document).ajaxError(ajaxErrorHandler);
});
function ajaxErrorHandler(event, jqxhr, settings, exception) {
// ...
// How to stop further processing of the AJAX response here?
}
Once I processed an error, I do not want the AJAX response to be processed any further. How can I stop the execution of the complete
callback? (My AJAX requests are made inside a library and I cannot define their parameters).
UPDATE:
Calling jqxdr.abort()
does not do the job.