I can't find the documentation on what are the parameters for the always()
method.
Right now, I'm just using:
$.post("foo.do", {
...
}, function(data) {
...
}).fail(function(jqXHR, textStatus, errorThrown) {
...
}).always(function() {
...
});
Parameters: The list of possible values are given below: type: It is used to specify the type of request. url: It is used to specify the URL to send the request to. username: It is used to specify a username to be used in an HTTP access authentication request.
GET is an HTTP method for requesting data from the server. Requests using the HTTP GET method should only fetch data, cannot enclose data in the body of a GET message, and should not have any other effect on data on the server.
The documentation is in jqXHR section of the $.ajax entry. 1
The parameters are as follows:
jqXHR.always(function( data|jqXHR, textStatus, jqXHR|errorThrown ) { });
If an error occurred:
jqXHR.always(function( jqXHR, textStatus, errorThrown ) { });
And otherwise:
jqXHR.always(function( data, textStatus, jqXHR ) { });
Notes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With