Why Study AJAX? If you want to learn : • Update a web page without reloading the page • Request data from a server - after the page has loaded • Receive data from a server - after the page has loaded • Send data to a server - in the background What is AJAX? AJAX stands for Asynchronous JavaScript And XML. AJAX is not a programming Language. Ajax just uses a combination of : A browser built-in XMLHttpRequest object (to request data from a web server) JavaScript and HTML DOM (to display or use the data) This is how AJAX works:- <!DOCTYPE html> <html> <head> <script> function tryAjax() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("content").innerHTML = this...
FitCoder is an Android Developer who develop Android Applications. FitCoder means a Fitness Freak who loves to code.