Basics of Ajax
page 3 of 5
by Debjani Mallick
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 39974/ 99

Advantages & Disadvantages of Using Ajax


Everything has its own merits and demerits, Ajax included.

·         The application seems to become more responsive and interactive as the user gets the response without clicking any buttons.

·         In classic web application, when the web server responds to the web browser with a new page, it may make use of multiple connection threads in order to speed up the process, but this happens for the content only (which is between <body> tags). The CSS as well as the script files present in the head section are transferred using only one connection thread which results in performance degradation. With Ajax, it is required to load only the basic script and CSS files. Rests are requested as content using multiple connections.

·         A big advantage is that the user is not required to keep on waiting and waiting.

·         One more important merit is traffic to and from the server is reduced a considerable amount.

·         If a section of a page encounters any error, other sections do not get affected and the data entered by the user is also not lost.


·         Ajax application development may lead to increase in development time and cost.

·         The biggest concern is accessibility because all browsers do not completely support Javascript and xmlHttpRequest object.

·         Using Ajax to asynchronously load bits of data into the existing page conflicts the way the users are used to viewing, navigating and creating bookmarks in a modern browser.

·         Another disadvantage lies in the xmlHttpRequest object itself because one can use it to access information from the host that served the “initial page” (due to security reasons).

View Entire Article

User Comments

Title: hai   
Name: bala
Date: 2012-08-28 12:51:06 AM
hello how r u
Title: Sundar   
Name: Sundar
Date: 2011-05-29 11:31:33 AM
Yes, Ajax Is Really Very Easy. But It Is Very Hard TO Learn
Title: fantastic explanation   
Name: harish Solanki
Date: 2010-12-12 11:57:30 PM
it is a great article and after reading this now i am able to understand how ajax works.
Title: Excellent   
Name: clhenter
Date: 2009-09-28 9:48:45 AM
Excellent article.
Title: Keeping it simple   
Name: Fat Limbaugh
Date: 2009-05-31 8:36:26 PM
You did a good job of keeping it simple and straight forward
Title: all   
Name: jagadish jadhav
Date: 2009-01-10 5:29:08 AM
I really thanks to this site owner. it is ever made site for the bignner programmer.
Title: Helpful for Begineers   
Name: Md. Mostafijur Rahman
Date: 2008-08-31 1:26:57 AM
Easy to understand..simply nice...
Title: Article on Ajax   
Name: narendra
Date: 2008-07-16 5:50:51 AM
Nice article
Title: Good to know about ajax for beginners   
Name: Harikrishna
Date: 2008-07-01 7:28:32 AM
This article is very good. Basic idea how Ajax works? simple to understand.
Title: Mind Blowing   
Name: Surendra
Date: 2008-05-22 8:51:38 AM
I am new to AJAX and find very comfortable with this article
Title: excellent   
Name: susan
Date: 2008-04-11 9:40:13 PM
Wow that was a nice explanation for a newbie to AJAX. Thanks for keeping it simple and easy to understand!
Title: Very Nice   
Name: chirag Panchal (MCA)
Date: 2008-03-28 8:20:34 AM
I'm new to AJAX I found this article is very interesting and useful.Thanks a lot.
Title: Really Good   
Name: Prabhakar reddy.D
Date: 2008-02-29 12:49:10 AM
I'm new to AJAX I found this article is very interesting and useful.Thanks a lot.
Title: fruitful, really wonderful   
Name: kanagaraj.P
Date: 2008-02-25 4:04:33 AM
im very much interested to learn new tech'y. i lve AJAX. I don't knw where to get started, i got tis site. very much informative. Can i get more detailed things abt ajax./.? please help me out to become familiar..
My e mail id:
Title: Very Useful   
Name: Nandagopal
Date: 2008-02-01 1:01:38 PM
I'm new to AJAX I found this article is very interesting and useful.Thanks a lot.
Title: Fruitful Article   
Name: Praveen Kumar emw
Date: 2008-01-29 7:41:22 AM
This atricle is very useful.It clears my doubts relating where should AJAX use and where shouldn't.
Thanx a lot.
Title: Ajax   
Name: Ravi
Date: 2007-12-05 12:20:46 PM
This Article is good but give example with Asp.Net
.aspx pages
Title: Informative Article   
Name: Ravinder Saini
Date: 2007-11-25 8:25:47 AM
Please send me info on AJAX.I need to start developing using ASP.Net with AJAX very soon.

Name: asim
Date: 2007-11-22 10:34:49 AM
exellent article thanks.
Title: good 2 see   
Name: prashanth
Date: 2007-09-20 7:03:12 AM
good 2 all
Title: AJAX - a Detailed Insight   
Name: Balaji
Date: 2007-09-18 11:59:24 PM
HATS OFF to Debjani Mallick.
Such a detailed insight in a simple language with easy examples..........
I request you to post more and more articles........
Title: Re: security disadvantage?   
Name: Debjani Mallick
Date: 2007-09-18 11:44:50 AM
In actual, due to security constraints XMLHttpRequest can only be used to access information from the host that served the initial page. If we need to display information from another server, it is generally not possible within the AJAX paradigm. XMLHttpRequest applies a restriction policy to the same origin. This kind of control will
deny any request made outside actual host,
considering port and protocol.
Title: ...........   
Name: john simpson
Date: 2007-09-18 6:00:02 AM
I am new to AJAX and I was wondering for some good information on Ajax. But when i went through your article, i really feel assured and now i can proceed for some AJAX stuffs.

I really feel thankful to you, for publishing such a managed article.
Title: security disadvantage?   
Name: K. Winter
Date: 2007-09-18 4:25:08 AM
Thanks for the article, it was useful. Can you shed some more light on the disadvantage that you noted:
"Another disadvantage lies in the xmlHttpRequest object itself because one can use it to access information from the host that served the “initial page” (due to security reasons)."

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

©Copyright 1998-2020  |  Page Processed at 2020-06-03 9:14:48 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search