This is revision from the Developing For The Internet unit from last year. It may be new to you if you're a BIBS student.

Classic web applications give no instant feedback to the user: when the web application's state changes (e.g. when the user enters something in a form), the page is reloaded in the browser.
This is because when a form is submitted, the server sends back a whole new HTML page as a response. So, web applications feel less responsive than desktop applications, because the user has to wait for the page to be sent back. They cannot interact with the page in the meantime.

AJAX stands for Asynchronous JavaScript and XML. It is a relatively new technique which allows browsers to communicate with a web server without having to reload the page.
A user might enter a search term in a form and click Go, and then the search results would be sent back from the server and one small part of the page only (as opposed to the entire page) updated with the search results.
Furthermore, requests to the server are sent, and responses received, in the background without any interruption to the user's interaction with the website... so, unlike in a traditional web application where the user has to wait for a response from the server, the user can continue to interact with the page while waiting for the response to come back.
AJAX is not an actual language, but a combination of technologies used to produce the effect above. An AJAX application typically consists of three components:
An AJAX application typically contains two JavaScript functions in addition to a server-side component:
The server-side script involved is no different to an ordinary server-side script: it simply receives the requests, acts upon it (e.g. looks up data in a database) and delivers a response. For example, if it's PHP, it uses $_GET or $_POST (depending on whether we're sending a GET request or a POST request) to read the data, then queries a database and sends back the results as plain text or XML.
Here is an example of an AJAX application offered by Solent Airways, to allow users to search for flights to a particular destination on a particular date.
Here is an example of some raw AJAX code. Don't worry too much if you don't understand this - there is an easier way, which we will discuss below!
AJAX test Solent Airways!
Get the cheapest flights ever!!!!!!!!!!
Whether it's New York, LA, Paris or Alicante, you can be sure to find the best deals on the web right here!!!!!!!!!!!!!!!!!!!!
Destination:
Date: