Why use AJAX?
Building a web application that employs AJAX is more difficult than building it the classic way. You need to go to extra lengths to make sure that the user experience is and remains enjoyable, and not plain annoying. With all the hype going around AJAX, a lot of applications that do not have a real need for it have been built. These are toys meant to prove that AJAX is fun, but with little or no use in real-life situations. At the same time, some applications that do not use AJAX are labeled as such. You can find a list of AJAX applications by using a search engine, or directly here.
The decision whether an application would benefit from using AJAX or not is entirely up to the developer. Here are a few hints to help you take the right decision.
____________________________________________________________________
The Benefits of AJAX
To help you decide whether AJAX is for you or not, here are some of the advantages it has over classic web development techniques:
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.
______________________________________________________________
The Disadvantages of AJAX
As with most new web development techniques, AJAX has its critics. There are a couple of disadvantages that need to be considered before considering an AJAX-based solution:
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).
A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
Data Science with Python training in chenni
Data Science training in chennai
Data science training in velachery
Data science training in tambaram
Data Science training in OMR
Data Science training in anna nagar
Data Science training in chennai
Data science training in Bangalore