You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Assign handlers immediately after making the request,// and remember the jqXHR object for this requestvarjqxhr=$.ajax("example.php").done(function(){alert("success");}).fail(function(){alert("error");}).always(function(){alert("complete");});// Perform other work here ...// Set another completion function for the request abovejqxhr.always(function(){alert("second complete");});
jQuery
http://www.jquery.com
Usage
$.get
see http://api.jquery.com/jQuery.get/
jQuery.get( url [, data ] [, success ] [, dataType ] )
Example:
$.post
see http://api.jquery.com/jQuery.post/
jQuery.post( url [, data ] [, success ] [, dataType ] )
Example:
$.ajax
see http://api.jquery.com/jQuery.ajax/
jQuery.ajax( [settings ] )
orjQuery.ajax( url [, settings ] )
The settings:
async
(default: true)type
GET,POST,PUT,DELETEdata
PlainObject or String or ArraydataType
xml,html,script,json,jsonp,textsuccess
timeout
error
*
Example:
$.getJson()
see http://api.jquery.com/jQuery.getJSON/
jQuery.getJSON( url [, data ] [, success ] )
APIs
The text was updated successfully, but these errors were encountered: