model. That is all you need to start building basic AJAX applications.
What is AJAX?
name; it is unfortunately chosen. What you need to know is that AJAX is not a new technology, it is a combination
combine these technologies to suit the needs of the always developing web applications.
What can AJAX do for you?
AJAX can make your webapps more user friendly. Perhaps the easiest illustration is when a user is filling some king
of form as a part of your webapp and based on the partial user input you can perform a database check
transparently to the user while he is still busy with filling the rest of the form. As a result of that asynchronous
request you can assist the user with various information(like username is taken, auto fill the rest of the form…)
making the GUI of the webapp user-friendly like the one of a standard stand-alone application.
Mixing the Technologies
Here are the basic technologies involved in AJAX:
HTML is used to build web forms and identify fields that you’ll use in the rest of the webapp
DHTML, of Dynamic HTML, helps you update your forms dynamically through usage of div, span and other
dynamic HTML elements
DOM, the Document Object Model, is used to work with both the structure of your HTML and (in some cases)
the XML returned from the server.
The XMLHttpRequest object
In this second part of this tutorial we'll take a look at the XMLHttpRequest object; object that you'll need in order to
make asynchronous requests to the server logic. It's quite simple and most of the time you'll either retype the creation
and request code of use c