JavaScript & jQuery Tutorials

JQ Home Right Arrow Ajax

Ajax

Click a JavaScript jQuery 1.10 API Ajax Method signature or property in the table below to see in-depth information on it.

AlphabeticallyDescription
Low-Level Interfacego to top of page Top
The jQuery.ajax() method has two signatures:
jQuery.ajax( url [, settings])Perform an asynchronous HTTP (Ajax) request to be sent to the specified url, optionally passing some request settings.
jQuery.ajax( settings )Perform an asynchronous HTTP (Ajax) request, optionally passing some request settings.
The jQuery.ajaxPrefilter() method has one signature:
jQuery.ajaxPrefilter( [dataTypes],
   handler(settings,originalSettings,jqXHR))
Filter custom Ajax settings or modify the existing settings, before sending each request and before they are processed by the $.ajax() method..
The jQuery.ajaxSetup() method has one signature:
jQuery.ajaxSetup( settings )Initialize default settings for future Ajax requests.
Shorthand Methodsgo to top of page Top
The jQuery.get() method has one signature:
jQuery.get( url [, data] [, function(data,
            textStatus,jqXHR)] [,dataType])
Load data from the server, using a HTTP GET request.
The jQuery.getJSON() method has one signature:
jQuery.getJSON( url [, data]
       [,function(data,textStatus,jqXHR)])
Load data from the server, that has been JSON encoded, using a HTTP GET request.
The jQuery.getScript() method has one signature:
jQuery.getScript( url
       [,function(data,textStatus,jqXHR)])
Load and execute a JavaScript file from the server, using a HTTP GET request.
The .load() method has one signature:
.load(url [,data] [,function(responseText,
            textStatus, XMLHttpRequest)])
Load data from the server and populate the matched element from the returned HTML on successful completion.
The jQuery.post() method has one signature:
jQuery.post(url [,data] [,function(data,
            textStatus,jqXHR)] [,dataType])
Load data from the server, using a HTTP POST request.
Serializationgo to top of page Top
The .param() method has two signatures:
jQuery.param( object )Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
jQuery.param( object, traditional )Create a traditional 'shallow' serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
The .serialize() method has one signature:
.serialize()Encode a set of form elements as a string ready for submission.
The .serializeArray() method has one signature:
.serializeArray()Encode a set of form elements as an array of name/value pairs ready for encoding as a JSON string.
Global Ajax Event Handlersgo to top of page Top
The .ajaxComplete() method has one signature:
.ajaxComplete( handler(event,
               jqXHR, ajaxSettings))
Register an Ajax Event handler to be called when Ajax requests complete.
The .ajaxError() method has one signature:
.ajaxError( handler(event,
            jqXHR,ajaxSettings,thrownError))
Register an Ajax Event handler to be called when Ajax requests complete with an error.
The .ajaxSend() method has one signature:
.ajaxSend( handler(event,
           jqXHR, ajaxSettings))
Register an Ajax Event handler to be called before Ajax requests are sent.
The .ajaxStart() method has one signature:
.ajaxStart( handler())Register an Ajax Event handler to be called when an Ajax request starts and no other requests are in progress.
The .ajaxStop() method has one signature:
.ajaxStop( handler())Register an Ajax Event handler to be called when all Ajax requests are finished.
The .ajaxSuccess() method has one signature:
.ajaxSuccess( handler(event,
              jqXHR, ajaxSettings))
Register an Ajax Event handler to be called whenever an Ajax request completes successfully.


 

go to jQuery home page jQuery Home go to top of page Top