Parameter | Details |
---|---|
url | Specifies the URL to which the request will be sent |
settings | an object containing numerous values that affect the behavior of the request |
type | The HTTP method to be used for the request |
data | Data to be sent by the request |
success | A callback function to be called if the request succeeds |
error | A callback to handle error |
statusCode | An object of numeric HTTP codes and functions to be called when the response has the corresponding code |
dataType | The type of data that you're expecting back from the server |
contentType | Content type of the data to sent to the server. Default is "application/x-www-form-urlencoded; charset=UTF-8" |
context | Specifies the context to be used inside callbacks, usually this which refers to the current target. |
AJAX stands for Asynchronous JavaScript and XML. AJAX allows a webpage to perform an asynchronous HTTP (AJAX) request to the server and receive a response, without needing to reload the entire page.