AJAX Programming
![]() |
What is AJAX?
AJAX is a technique that combines several different technologies. The acronym stands for Asynchronous JavaScript and XML. "Asynchronous" refers to the fact that XML data loading is not linked to HTML and JavaScript page loading. Thus, a web page may communicate with the server "in background" without having to reload upon every change that comes from the user. This boosts speed, interactivity and functionality.
AJAX function calls are made in JavaScript. Data obtained from the call is formatted in XML. The technique is valid across platforms, operating systems, architectures and browsers. The elements of AJAX include a markup language (like HTML or XHTML) and a presentation definition language like CSS; the DOM, with a client-side scripting language for access to it (like JavaScript), the XMLHttpRequest object, which exchanges data between the web page and the server, and a formatting language for the data transfer, most often XML (but several server-side scripting languages work). The XMLHttpRequest object is the heart of the technique, as it avoids the need for page refreshes.
