mobileNavlogo
headerlogo

jQuery AJAX Methods

05 October, 2020

Ratings

Related Blogs

 

You have seen basic concept of AJAX using jQuery. Following table lists down all important jQuery AJAX methods which you can based your programming need: Methods and Description jQuery.ajax{options} load a remote page using an HTTP request.   jQuery.ajaxSetup{options} Set up global settings for AJAX requests.   jQuery.ger{url,[data],[callback],[type]} Load a remote page using an HTTP GET request.   jQuert.getJson{url,[data],[callback]} Load JSON data using an HTTP GET request.   jQuery.getScript{url,{callback}] Loads and executes aJava Script file using anHTTP GET request. jQuery.post{url,[data].[callback],[type]} Load  a  remote page using anHTTP POST request.   Load{url,[data][callback]} Load a HTML from a remote file and inject it inot the DOM.   Serialize{} Serializes a set of input elements into a string of data.   SerializeArray{} Serializes all forms and form elements like the .serialize{} method but returns a JSON data structure for you to work with.  

jQuery AJAX Events

You can call various jQuery methods during the life cycle of AJAX call progress. Based on different events/stages following methods are available: You can go through all the AJAX Events  

Methods and Description

ajaxComplete{callback} Attach a function to be executed whenever an AJAX request completes.   ajaxStart{call back} Attach a function to be executed whenever an AJAX request begins and there is none alreadyactive.   Ajax Error{callback} Attach afunction to be executed whenever an AJAX request fails.   ajaxSend{callback} Attach a function to be executed before an AJAX request is sent.   ajaxStop{callback} Attach a function to be executed whenver all AJAX requests have ended.   ajaxSucess{call-back} Attach a function to be executed whenever an AJAX request completes successfully.

About Author
Authorlogo
Name

TekSlate

Author Bio

TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .