Ajax Requests |
jQuery.ajax( settings ) |
XMLHttpRequest |
jQuery.ajax( settings ) |
Perform an asynchronous HTTP (Ajax) request. |
Ajax Events |
.ajaxComplete( handler(event, XMLHttpRequest, ajaxOptions) ) |
jQuery |
.ajaxComplete( handler(event, XMLHttpRequest, ajaxOptions) ) |
Register a handler to be called when Ajax requests complete. This is an Ajax Event. |
Ajax Events |
.ajaxError( handler(event, XMLHttpRequest, ajaxOptions, thrownError) ) |
jQuery |
.ajaxError( handler(event, XMLHttpRequest, ajaxOptions, thrownError) ) |
Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. |
Ajax Events |
.ajaxSend( handler(event, XMLHttpRequest, ajaxOptions) ) |
jQuery |
.ajaxSend( handler(event, XMLHttpRequest, ajaxOptions) ) |
... |
Misc |
jQuery.ajaxSetup( options ) |
- |
jQuery.ajaxSetup( options ) |
Set default values for future Ajax requests. |
Ajax Events |
.ajaxStart( handler() ) |
jQuery |
.ajaxStart( handler() ) |
Register a handler to be called when the first Ajax request begins. This is an Ajax Event. |
Ajax Events |
.ajaxStop( handler() ) |
jQuery |
.ajaxStop( handler() ) |
Attach a function to be executed whenever all AJAX requests have ended. This is an Ajax Event |
Ajax Events |
.ajaxSuccess( handler(event, XMLHttpRequest, ajaxOptions) ) |
jQuery |
.ajaxSuccess( handler(event, XMLHttpRequest, ajaxOptions) ) |
Attach a function to be executed whenever an AJAX request completes successfully. This is an Ajax Event |
Ajax Requests |
jQuery.get( url, [ data ], [ callback(data, textStatus, XMLHttpRequest) ], [ dataType ] ) |
XMLHttpRequest |
jQuery.get( url, [ data ], [ callback(data, textStatus, XMLHttpRequest) ], [ dataType ] ) |
Load data from the server using a HTTP GET request. |
Ajax Requests |
jQuery.getJSON( url, [ data ], [ callback(data, textStatus) ] ) |
XMLHttpRequest |
jQuery.getJSON( url, [ data ], [ callback(data, textStatus) ] ) |
Load JSON-encoded data from the server using a GET HTTP request. |
Ajax Requests |
jQuery.getScript( url, [ success(data, textStatus) ] ) |
XMLHttpRequest |
jQuery.getScript( url, [ success(data, textStatus) ] ) |
Load a JavaScript file from the server using a GET HTTP request, then execute it. |
Ajax Requests |
.load( url, [ data ], [ success(responseText, textStatus, XMLHttpRequest) ] ) |
jQuery |
.load( url, [ data ], [ success(responseText, textStatus, XMLHttpRequest) ] ) |
Load data from the server and place the returned HTML into the matched element. |
Ajax Requests |
jQuery.param( obj ) |
XMLHttpRequest |
jQuery.param( obj ) |
Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. |
Ajax Requests |
jQuery.param( obj, traditional ) |
XMLHttpRequest |
jQuery.param( obj, traditional ) |
New 1.4 Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. |
Ajax Requests |
jQuery.post( url, [ data ], [ success(data, textStatus) ], [ dataType ] ) |
XMLHttpRequest |
jQuery.post( url, [ data ], [ success(data, textStatus) ], [ dataType ] ) |
Load data from the server using a HTTP POST request. |
Misc |
serialize( ) |
String |
.serialize() |
Encode a set of form elements as a string for submission. |
Misc |
.serializeArray() |
Array |
.serializeArray() |
Encode a set of form elements as an array of names and values. |