If I navigate away from a page in the middle of an $.ajax() request it fires the error callback. I've tested in Safari and FF with both GET and POST requests.
It has been suggested that one could abort all AJAX requests on page unload but the error handler is actually called first so it doesn't seem possible nor practical.
This is problematic because I want to be able to handle REAL errors such as 500s gracefully on the client side with a polite alert or a modal dialog, but if this is being called when a user navigates away from the page it poses a big problem.
Another strange thing is that the textStatus parameter is "error", the same it throws when receiving a bad request.
Am I missing something?