Phillip Senn Phillip Senn -5 years ago 124
Javascript Question

What are the parameters sent to .fail in jQuery?

I can’t find the documentation on what the names of the three parameters are when


Right now, I’m just using:

.fail(function(A, B, C) {

Answer Source

According to the fail callback should be getting:

jqXHR, textStatus, errorThrown

same as error, but error is deprecated:

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(),, and jqXHR.always() instead.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download