Open In App

AJAX full form

AJAX is an abbreviation for Asynchronous JavaScript and XML. AJAX is a technique not a programming language which is used by the developers to make the websites behaving like desktop applications. It operates on the client-side for creating asynchronous web applications. AJAX is a group of technologies that uses number of web technologies for creating a set of web development techniques. 



AJAX allows multiple web pages to be updated one by one by exchanging the data with the web server in the background. Which means that the part of the web pages can be updated without refreshing the whole page again and again.

Let’s take an example of facebook page, in facebook news feed when we press the like, love, etc button or comment on any picture then it will simply like, loves the picture without reloading the whole page. Whereas sometime before, when we hit the like button it will reload the whole pages. This change is made because of AJAX i.e. AJAX allows the part of the web pages to be updated without disturbing the whole page. 



AJAX uses the mixture of both the following :

Technologies involved in AJAX are:

History of Ajax:

AJAX: A new approach to Web applications, based on techniques used on Google pages.

Characteristics of Ajax:

Ajax structure:




function geeksforgeeks(str) 
{
  var gfg=new XMLHttpRequest();
  gfg.open("get","url?name_you_want_to_Send="+str,true);
  gfg.send();
  gfg.onreadystatechange=function gfg1() 
  {
     // if true means reaponse is arrived
     if(gfg.readyState==4 && gfg.status==200)          
     {
            document.getElementById("name").innerHTML=
            gfg.responseText;
     }
  }
}

Advantages of Ajax :

Disadvantages of Ajax :


Article Tags :