jquery - why does $.ajax call the success handler when the request is aborted because my server is d
Posted
by Sam
on Stack Overflow
See other posts from Stack Overflow
or by Sam
Published on 2010-06-16T17:45:24Z
Indexed on
2010/06/16
17:52 UTC
Read the original article
Hit count: 159
When I bring my server down and make an ajax request to it, firebug shows that the request is aborted a few seconds after making the request, and my success
handler gets called.
Why does the success handler get called, shouldn't it be the error handler? And how can I reliably detect that it wasn't actually a success?
© Stack Overflow or respective owner