Home >>jQuery Tutorial >jQuery AJAX Methods
AJAX is the art of exchanging data with a server and upgrading web page sections-without reloading the whole website.
The following table lists all the methods used in jQuery AJAX:Method | Description |
---|---|
$.ajax() | Does an AJAX async request |
$.ajaxPrefilter() | Handle custom Ajax options or modify existing options prior to sending each request and before $.ajax() processes them |
$.ajaxSetup() | Sets values for future AJAX requests by default |
$.ajaxTransport() | Creates an object which handles the actual transfer of Ajax data |
$.get() | Loads data from a server by requesting AJAX HTTP GET |
$.getJSON() | Loads data encoded in JSON from a server using an HTTP GET request |
$.parseJSON() | Takes a well-formed JSON string and returns the JavaScript value that results |
$.getScript() | Use AJAX HTTP GET request to load (and execute) a JavaScript from a server |
$.param() | Creates a serialized representation of an array or object (can be used for AJAX requests as the URL query string) |
$.post() | Use AJAX HTTP POST request to load data from a server |
ajaxComplete() | Specifies a function to run on completion of the AJAX request |
ajaxError() | Specifies a function to run when an AJAX request is error-filled |
ajaxSend() | Specifies a function to execute before sending AJAX request |
ajaxStart() | Specifies a function to run when initiating the first AJAX request |
ajaxStop() | Specifies a function to run on completion of all AJAX requests |
ajaxSuccess() | Specifies a function to run on successful completion of an AJAX request |
load() | Loads data from a server and places the returned data in the chosen element |
serialize() | Encodes a set of elements of the form as a string to submit |
serializeArray() | Encodes a set of elements of the form as a set of names and values |