AJAX (Part1)

Whats Ajax???

First of all AJAX is not a single technology…its a combination of many technologies which are working together in their own way to bring out powerful ways of designing web applications.

AJAX mainly includes

— Usage of all web standards using XHTML and CSS.
— Changing data and managing those data using XML and XLST.
— Using the XMLhttpRequest Object for asynchronous data retrieval.
— Bringing dynamic display and interaction using DOM (Document Object Model).
— Using JavaScript to combine all the above components.

How is it different from the Old web model?

Here mainly I have to go for the negative points of our usual web environment and its bad affects. Firstly we are making our clients or users to wait for long at the time loading .The only solution for making our web application fast is to compare our web application with the usual windows based application and compare the form loading speeds. And the best method will be to restrict the HTTP requests to the web server whenever there is a processing. So that will be including processing in client side itself if we can.

What AJAX provides?

Here we have found an end to the up down up down communication to the web server and the client machine when we use a web application. Users don’t have to go to the web server to do some processing every time they do anything on the server.
Here there is an introduction of a “AJAX ENGINE ” which now plays a role in between the user and the web server. The AJAX engine is loaded when the web session starts .It is responsible for rendering the user interface by communicating with the web server on the user’s behalf. The Ajax engine works in a way so that the users interaction with the web server happens asynchronously – independent with the communication with the web server.

The following image will make my points a bit more clear.

So whenever there is any user request, the HTTPrequest takes the form of a JavaScript call to the AJAX engine. And if the user request doesn’t need a round trip to the server like when it’s a validation request or an edit in data in the memory or can be a navigation request, the AJAX engine itself handles it asynchronously. When the AJAX engine needs some thing from the server in order to give a response like submitting data for processing, loading additional interface code etc, the engine does it asynchronously with out disturbing the users interaction with the application .It uses XML for this purpose.

Leave a Reply

Your email address will not be published. Required fields are marked *