XMLHttpRequest Ajax in JavaScript
Using XMLHttpRequest, Ajax Call to PHP page, MySQL Data in JavaScript What is XMLHttpRequest? XMLHttpRequest is a JavaScript's in-built browser object that allows to make HTTP requests to Server. XMLHttpRequest is used to implement AJAX effect in web application development. Basically XMLHttpRequest (XHR) objects used to interact with servers. It makes You to retrieve data from a URL without refreshing the complete page. This enables a Web page to update just part of a page without interrupting the user what he is doing on a page. In this tutorial to implement Ajax feature in web application, we are using 3 programs. 1. An HTML page allows the user to send a request to the server. 2. A JavaScript Page, which resides in the middle of the HTML and Server Page, receives the request from the HTML page and sends the request to the server and receives the response and passes it to the HTML page. 3. Server Page here it is a PHP page which will receives the request from JavaScrip