The content type sent in the request header that tells the server what kind of response it will accept in return.
By default, all requests are sent asynchronously (i.e.
By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false.
A pre-request callback function that can be used to modify the JQueryXHR object before it is sent.
A pre-request callback function that can be used to modify the JQueryXHR object before it is sent. Returning false in the beforeSend function will cancel the request.
If set to false, it will force requested pages not to be cached by the browser.
A function to be called when the request finishes (after success and error callbacks are executed).
When sending data to the server, use this content type.
An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type.
This object will be the context of all Ajax-related callbacks.
An object containing dataType-to-dataType converters.
If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true.
Data to be sent to the server.
Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests.
A function to be used to handle the raw response data of XMLHttpRequest.
The type of data that you're expecting back from the server.
A function to be called if the request fails.
Whether to trigger global Ajax event handlers for this request.
Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart
or ajaxStop
from being triggered.
An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport.
Allow the request to be successful only if the response has changed since the last request.
Allow the current environment to be recognized as "local," (e.g.
Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default.
Override the callback function name in a JSONP request.
Specify the callback function name for a JSONP request.
The HTTP method to use for the request (e.g.
The HTTP method to use for the request (e.g. "POST", "GET", "PUT").
A mime type to override the XHR mime type.
A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded".
Only applies when the "script" transport is used.
An object of numeric HTTP codes and functions to be called when the response has the corresponding code.
A function to be called if the request succeeds.
Set a timeout (in milliseconds) for the request.
Set this to true if you wish to use the traditional style of param serialization.
A string containing the URL to which the request is sent.
A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
Callback for creating the XMLHttpRequest object.
An object of fieldName-fieldValue pairs to set on the native XHR object.
jQuery AJAX settings object
See: jQuery Docs