A New Approach To Web Applications : © Wipro Technologies - Wipro Confidential - Not For Distribution
A New Approach To Web Applications : © Wipro Technologies - Wipro Confidential - Not For Distribution
A New Approach To Web Applications : © Wipro Technologies - Wipro Confidential - Not For Distribution
HTTP
Data Web Server App. Server
If the data to be displayed on the screen is huge then it may take more time for the application to go to next page or to reload the same page.
User has to wait for the page to get reloaded and then continue the work.
2 Wipro Technologies - Wipro Confidential - Not for Distribution
What is AJAX
To overcome the time consuming nature (more hits to server i.e. resulting in heavy traffic at the server end) of classic web applications and to make it more interactive AJAX came into picture. Ajax is not a new programming Language, rather its a technique/framework to create better, faster and more interactive Web Applications. AJAX is a browser technology independent of web server software.
History of AJAX
Intially named as XMLHTTP The term AJAX was first coined by Jesse James Garrett of Adaptive Path. AJAX was made popular by Google by using it in Gmail and Google suggest.
Purpose of AJAX
Purpose Asynchronous Data Retrieval Data Interchange To achieve dynamic display & interaction.
For Presentation For binding all the above technologies in a single thread.
A J A X E N G I N E
Data
Web Server
App Server
An Ajax application eliminates the start-stop-startstop nature of interaction on the Web by introducing an intermediary an Ajax engine between the user and the server.
AJAX engine
A J A X E N G I N E
User actions
Web browser
Data
Web services
To implement AJAX in the development of a web application we must built around XMLHttpRequest object, everything in Ajax revolves around manipulating and handling this object. This object along with JavaScript is capable of making asynchronous calls to the server.
Example
Webservice method
As you type something into the search text field, the system goes to the server and fills in a short selection area with even further information about the number of results. A user can use their arrow keys to tap down to a final selection.
2.Gmail:
Here we see the same thing as you type in something into the search text field, the system goes to the server and fills in a short selection area with even further information about the number of results. A user can use their arrow keys to tap down to a final selection.
More Examples
AJAX is more seriously employed in social sites like Flickr, del.icio.us, Orkut, and some web based desktop replacement applications like Google spreadsheet, Writely online editor, AjaxWrite, Zoho office suite etc.
Pros
Real-time form data validation Autocompletion Load on demand Sophisticated user interface controls and effects Refreshing data and server push Partial submit Mashups Page as an application
Conclusion
Ajax applications represent the best of both worlds: the responsiveness of Desktop applications combined with the simplicity and usability of traditional web applications.