Ajax
The jQuery library has a full suite of AJAX capabilities. The functions and methods therein allow us to load data from the server without a browser page refresh.
-
jQuery.ajax()
Perform an asynchronous HTTP (Ajax) request.
-
.ajaxComplete()
Register a handler to be called when Ajax requests complete. This is an Ajax Event.
-
.ajaxError()
Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
-
jQuery.ajaxPrefilter()
Handle custom Ajax options or modify existing options before each request is sent and before they are processed by
$.ajax()
. -
.ajaxSend()
Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
-
jQuery.ajaxSetup()
Set default values for future Ajax requests.
-
.ajaxStart()
Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
-
.ajaxStop()
Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
-
.ajaxSuccess()
Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
-
jQuery.get()
Load data from the server using a HTTP GET request.
-
jQuery.getJSON()
Load JSON-encoded data from the server using a GET HTTP request.
-
jQuery.getScript()
Load a JavaScript file from the server using a GET HTTP request, then execute it.
-
.load()
Load data from the server and place the returned HTML into the matched element.
-
jQuery.param()
Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
-
jQuery.post()
Load data from the server using a HTTP POST request.
-
.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.