Asynchronous JavaScript and XML (AJAX) are nouns that describe the process of transferring data between client script and server. The advantage is that it gives developers a way to accept content from a Web server without refreshing the page that the user is currently browsing.
Asynchronous JavaScript and XML (Ajax) is a term for the process of
Transferring data between a client script and the server. The advantage of
This is the it provides developers with a way to retrieve the content from a
Web server without reposting the page the user is currently viewing to the
Server. In concert and modern browsers ' ability to dynamically change
Displayed content through programming code (JAVASCRIPT) that accesses
The browser ' s DOM, Ajax lets developers update the HTML content
displayed in the browser without refreshing the page. Thus, Ajax
Provides dynamic interaction between a client and a server. In the other
Words, Ajax can make browser-based applications more interactive, and more
Responsive, and more like traditional desktop applications. Google ' s Gmail
And Outlook Express are two familiar examples that use Ajax techniques.
Ajax has various applications, some of which are, discussed.
1. Dynamic Form Data Validation. As an example, suppose a user fills
Out a form to register with a Web site. The validity of data in the form
Is isn't checked till the form is submitted. With Ajax, the data added to
The form is dynamically validated using business logic in a server
Application. Thus, a complete form does not have to is posted to the
Server to check if data in the ' form is valid.
2. Auto completion. As a user adds some data to a form, the remaining
Form gets auto completed.
3. Refreshing data on a page. Some Web pages require that data is
Refreshed frequently, a weather web site for example. Using the Ajax
technique, a Web page may poll the server for latest data and refresh
The Web page without reloading the page.
Ajax is based on XMLHttpRequest, JavaScript and XML DOM
Technologies. JavaScript and XML DOM technologies are relatively old
Technologies. Therefore we won ' t discuss these. XMLHttpRequest is a relatively new technology. In the next section, we shall discuss the XMLHttpRequest technology.