Specify only the second parameter in a javascript function
- by Ben McCormack
The spec for the jQuery ajax.error function is:
error(XMLHttpRequest, textStatus, errorThrown)Function
I'm trying to catch the error and display the textStatus, but I can't figure out how to specify only the textStatus without having to put in a variable name for XMLHttpRequest and errorThrown. My code currently looks like this:
$.ajax({
…