If a timeout occurs (I switch the local webserver off), the 'success' method will be called! More than this in the textStatus parameter there is a string with "success" !!! The error handler doesn't even get called.... (As you may notice the only way I had to tell the problem, was to check the data param if it is null or 0 length... Why this behaviour? How can I avoid this?
Do the jQuery Dev team a favour. Put a break-point somewhere near line 5165 in jquery.js and watch what Safari feeds back into the isTimeout parameter. The handling of this abort appears quite browser-specific so you might (1) want to change the code in there to serve your immediate requirements and (2) post your fix in a bug report.
Did you find the solution for this? I'm having the same problem. What I found is that it depends on how long is the timeout. Using chrome, for a timeout less that 2000 miliseconds, everything works as expected, but for greater timeouts, the success handler it's called.
Leave a comment on jqsancho's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic