What Is Ajax?
- Ajax is not itself a technology
- Ajax is a way of mixing well-known programming techniques in an uncommon way to develop web applications with appealing user interfaces
- Ajax works as an extra layer between the user’s browser and the web server to fill up the lapses of traditional web application development
- Ajax Solves the problem of filing up a form, click a submit button or hyperlink and wait for the page to reload to show the result
- Ajax Avoids reloading of elements that are identical to those of the previous page
Why Ajax is Asynchronous?
- In Ajax, server requests are not necessarily synchronized with user actions. Ajax application may already have requested the server, and received, the data required by the user—perhaps before the user even knew she wanted it. This is the meaning of the asynchronous part of the Ajax acronym
- Ajax uses XML for coding and transferring formatted information between server and client.
Traditional Interaction Vs Ajax Client Server Interactions
- Data will not be sent to the server until the form is finally submitted
- You may complete the data entry fields of a form editing and re-editing your entries as much as you want
- After a form is submitted, you must wait while the browser screen refreshes to display the new or revised page that has been delivered by the server
- Don’t click the Submit button a second time
- Don’t click the Back button after submitting a form
- Unnecessary download of data wastes bandwidth and further exacerbates the delay in loading each new page
The updating of page elements to reflect the revised information received from the server is also looked after by Ajax, happening dynamically while the page continues to be used.
|< Prev||Next >|