AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and JavaScript.
Ajax uses XHTML for content, CSS for presentation, along with Document Object Model and JavaScript for dynamic content display.
Conventional web applications transmit information to and from the server using synchronous requests. It means you fill out a form, hit submit, and get directed to a new page with new information from the server.
Here, clicking the login button is an event. It sends an HTTP Request to the server Request is basically asking the server what to do with this credential.
The server processes the request and decides whether the entered credential is correct or not and respectively return a message to the webpage.
Create an XMLHttpRequest Object
variable = new XMLHttpRequest();
Send a Request:
xhttp.open("GET", "ajax_info.txt");
xhttp.send();
AUTOCOMPLETE?
AJAX is used to auto-complete Google suggestions. As you type, Google Suggest requests suggestions from the server, showing you a drop-down List of Search terms that you may be interested in.