I can’t find the documentation on what the names of the three parameters are when $.ajax fails.
$.ajax
Right now, I’m just using:
.fail(function(A, B, C) {
According to http://api.jquery.com/jQuery.ajax/ the fail callback should be getting:
fail
jqXHR, textStatus, errorThrown
same as error, but error is deprecated:
error
Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
1.4m articles
1.4m replys
5 comments
57.0k users