Understanding AJAX
page 8 of 10
by Rajdeep Mukherjee
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 40302/ 47

Benefits and Drawbacks of Ajax

This section outlines the benefits and drawbacks of AJAX.

Benefits

Low usage of bandwidth – AJAX facilitates faster web page renderings by reducing the web server hits. AJAX pages can load much faster when the payload coming down is lesser in size. This is achieved by generating the HTML locally within the browser and also the JavaScript calls and actual data is brought down. A large result set having data from multiple pages can be a good example in this regard. AJAX allows loading the HTML content of the page (with table structures and its tags) locally in the web browser. Additionally, some web applications load stubs of event handlers and subsequently “load the functions on the fly.” All of these help in managing the optimal consumption of bandwidth for applications having complex functions and logic.

Usage of XMLHttpRequest – It is able to make requests to pages not set up for AJAX, can set or get all HTTP headers, can make HTTP requests using any type (GET, POST, PROPFIND, and so on), supports full control over POST requests and allows for any type of data encoding.

Drawbacks

Response Time – AJAX based development should take care of the response time between client requests and server response as it normally gets delayed due to the fact that smart preloading of data and proper handling of XMLHttpRequest object may cause delay in lining up with the web application.

Back button in the web browser does not work – In AJAX based development, the pages that are created dynamically do not get stored into the browser history and the “Back” button in the user’s browser will not work in this case.

JavaScript Dependency – AJAX based development depends on JavaScript to a great extent. JavaScript is implemented differently in different web browsers and proper caution needs to be taken to ensure that the web pages behave the same in different browsers.


View Entire Article

User Comments

Title: Great   
Name: Debdutta Chakraborty
Date: 2007-08-08 8:55:17 AM
Comment:
This is a nice and wonderful article for those who are new in AJAX technology. Great references with short yet enough description gives the core idea on this technology. I liked the suggested reading section.

Thanks
Title: wonderful   
Name: Akram
Date: 2007-08-08 4:35:08 AM
Comment:
Its very useful information for those who making dynamic web applicaton .






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-16 6:45:05 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search