Jquery Api Request

Posted on  by admin

JS VersionsJS 2009 (ES5)JS 2015 (ES6)JS 2016JS 2017JS 2018JS IE / EdgeJS History. Object DefinitionsObject PropertiesObject MethodsObject DisplayObject AccessorsObject ConstructorsObject PrototypesObject IterablesObject SetsObject MapsObject Reference.

JS Versions

Function DefinitionsFunction ParametersFunction InvocationFunction CallFunction ApplyFunction BindFunction Closures. Class IntroClass InheritanceClass Static.

JS CallbacksJS AsynchronousJS PromisesJS Async/Await. DOM IntroDOM MethodsDOM DocumentDOM ElementsDOM HTMLDOM FormsDOM CSSDOM AnimationsDOM EventsDOM Event ListenerDOM NavigationDOM NodesDOM CollectionsDOM Node Lists.

JS WindowJS ScreenJS LocationJS HistoryJS NavigatorJS Popup AlertJS TimingJS Cookies.
Web API IntroWeb Forms APIWeb History APIWeb Storage APIWeb Worker APIWeb Fetch APIWeb Geolocation API.

JS Browser BOM

AJAX IntroAJAX XMLHttpAJAX RequestAJAX ResponseAJAX XML FileAJAX PHPAJAX ASPAJAX DatabaseAJAX ApplicationsAJAX Examples. JSON IntroJSON SyntaxJSON vs XMLJSON Data TypesJSON ParseJSON StringifyJSON ObjectsJSON ArraysJSON ServerJSON PHPJSON HTMLJSON JSONP.

jQuery SelectorsjQuery HTMLjQuery CSSjQuery DOM. JS GraphicsJS CanvasJS PlotlyJS Chart.jsJS Google ChartJS D3.js. JS ExamplesJS HTML DOMJS HTML InputJS HTML ObjectsJS HTML EventsJS BrowserJS EditorJS ExercisesJS QuizJS Certificate.

JavaScript ObjectsHTML DOM Objects. Description: Send data to the server using a HTTP POST request.

A string containing the URL to which the request is sent.

Type: PlainObject or String. A plain object or string that is sent to the server with the request. Type: Function( PlainObject data, String textStatus, jqXHR jqXHR ).

A callback function that is executed if the request succeeds.

Required if dataType is provided, but can be null in that case.

The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html). Type: PlainObject. A set of key/value pairs that configure the Ajax request.

All properties except for url are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) for a complete list of all settings.

Type will automatically be set to POST. This is a shorthand Ajax function, which is equivalent to:. The success callback function is passed the returned data, which will be an XML root element or a text string depending on the MIME type of the response.

It is also passed the text status of the response.

As of jQuery 1.5, the success callback function is also passed a "jqXHR" object (in jQuery 1.4, it was passed the XMLHttpRequest object).

Most implementations will specify a success handler:.