This enables rich behavior (similar to that of a desktop application or plugin-based web application) using a browser.
Ajax interactions are handled asynchronously in the background.
In other words, the user can type in part of the composer name, and the web application attempts to complete the name by listing all composers whose first or last name begins with the characters entered.
While learning about the low-level functionality of Ajax, you build a simple application that employs auto-completion in a text field.
Content here has been adapted from Greg Murray's article and sample application from Using Ajax with Java Technology. In essence, Ajax is an efficient way for a web application to handle user interactions with a web page - a way that reduces the need to do a page refresh or full page reload for every user interaction.
When the Ajax interaction is complete, Java Script updates the HTML source of the page.
The changes are made immediately without requiring a page refresh.
The page includes a field where the user can enter the name of the composer.
Ajax interactions can be used to do things such as validate form entries (while the user is entering them) using server-side logic, retrieve detailed data from the server, dynamically update data on a page, and submit partial forms from the page.
Contents Imagine a web page in which a user can search for information about musical composers.