Skip to content
Related Articles

Related Articles

jQuery AJAX Complete Reference

Improve Article
Save Article
  • Last Updated : 28 Nov, 2022
Improve Article
Save Article

AJAX is a technique, not a programming language that is used by developers to make websites behave like desktop applications. It operates on the client-side for creating asynchronous web applications. AJAX is a group of technologies that uses a number of web technologies for creating a set of web development techniques.

jQuery provides various methods for AJAX functionality. There are some jQuery AJAX methods that are used to request text, HTML, XML, or JSON from a remote server using both HTTP Get and HTTP Post. 

Synatx:

$.ajax_method(parameter1, parameter2, ..)

Example: This example use param() method to create serialized representation of an object.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        jQuery param() Method
    </title>
  
    </script>
</head>
  
<body style="text-align:center;">
  
    <h1 style="color:green;">
        GeeksForGeeks
    </h1>
  
    <h2>jQuery param() Method</h2>
  
    <button>Click</button>
  
    <div></div>
  
    <!-- Script using param() method -->
    <script>
        $(document).ready(function() {
              
            personObj = new Object();
              
            personObj.Firstword = "Geeks";
            personObj.Secondword = "For";
            personObj.Thirdword = "Geeks";
            personObj.Wordcolor = "Green";
              
            $("button").click(function() {
                $("div").text($.param(personObj));
            });
        });
    </script>
</body>
  
</html>


Output:

 

jQuery AJAX Method Complete Reference:

jQuery AJAX Complete List:

Description

jQuery  ajax() Method This is used to perform an AJAX request or asynchronous HTTP request.
jQuery  ajaxSetup() Method This is used to set the default values for future AJAX requests.
jQuery  get() Method In jQuery .get() method loads data from the server by using the GET HTTP request.
jQuery  getJSON() Method The getJSON() method in jQuery fetches JSON-encoded data from the server using a GET HTTP request.
jQuery  parseJSON() Method This parseJSON() Method in jQuery takes a well-formed JSON string and returns the resulting JavaScript value.
jQuery  getScript() Method The getScript() method in jQuery is used to run a JavaScript using AJAX HTTP GET request.
jQuery  param() Method The param() Method in jQuery is used to create a serialized representation of an object.
jQuery  post() Method The post() method in jQuery loads the page from the server using a POST HTTP request and returns an XMLHttpRequest object.
jQuery  ajaxComplete() Method The ajaxComplete() method is used to specify a function to be run when an AJAX request completes.
jQuery  ajaxError() Method The ajaxError() method in jQuery is used to specify a function to be run when an AJAX request fails.
jQuery  ajaxSend() Method The ajaxSend() method in jQuery is used to specify the function to be run when an AJAX request is about to send.
jQuery  ajaxStart() Method The ajaxStart() method is used to specify a function to be run when an AJAX request starts.
jQuery  ajaxStop() Method The ajaxStop() method is used to specify a function to be run when AJAX requests have been completed.
jQuery  ajaxSuccess() Method The ajaxSuccess() method in jQuery is used to specify the function to be run when an AJAX request is completed successfully.
jQuery  load() Method jQuery load() method is a simple but very powerful AJAX method. 
jQuery  serialize() Method  This is used to create a text string in standard URL-encoded notation.
jQuery  serializeArray() Method This is used to create a JavaScript array of objects that is ready to be encoded as a JSON string.

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!