jQuery AJAX methods
jQuery AJAX methods
AJAX is a technique for exchanging data with the server that can update part of a web page without reloading the entire page.
The following table lists all jQuery AJAX methods:
| Method | Description |
|---|---|
| $.ajax() | Perform an asynchronous AJAX request |
| $.ajaxPrefilter() | Handle custom Ajax options or modify existing options before each request is sent and processed by $.ajax() |
| $.ajaxSetup() | Set default values for future AJAX requests |
| $.ajaxTransport() | Create the object that handles the actual transfer of Ajax data |
| $.get() | Load data from the server using an AJAX HTTP GET request |
| $.getJSON() | Load JSON-encoded data from the server using an HTTP GET request |
| $.getScript() | Load and execute JavaScript from the server using an AJAX HTTP GET request |
| $.param() | Create a serialized representation of an array or object (usable in a URL query string for AJAX requests) |
| $.post() | Load data from the server using an AJAX HTTP POST request |
| ajaxComplete() | Specify a function to run when the AJAX request completes |
| ajaxError() | Specify a function to run when the AJAX request fails |
| ajaxSend() | Specify a function to run before the AJAX request is sent |
| ajaxStart() | Specify a function to run when the first AJAX request starts |
| ajaxStop() | Specify a function to run when all AJAX requests complete |
| ajaxSuccess() | Specify a function to run when the AJAX request completes successfully |
| load() | Load data from the server and place the returned data into the specified element |
| serialize() | Encode a set of form elements as a string for submission |
| serializeArray() | Encode a set of form elements as an array of names and values |