Common AJAX Programming Mistakes
Check out latest Mobile Phones and Books only at Flipkart.com
With the advent of Web 2.0 the Web Application has now become more interactive in nature thanks to AJAX. But this interactive using AJAX comes with some mistakes that people generally doesn’t follows.
Below are the list of mistakes that AJAX gives you as a gift.
No Back Button Functionality
By default the browser stores the web page visited in the History Folder, but with AJAX the browser is unable to retrieve the dynamic content.
2. Waiting Endlessly
The AJAX functionality largely depend on the network connection and the bandwidth. AJAX works well with good Internet Connection so if you are using dial-up you will have to wait until the response comes from the server. But if your browser get struck in between the AJAX call irrespective of the internet connection then your browser window is dead until the user reloads the page or opens a same page and writes the same content again and submit.
Using AJAX for the sake of AJAX.
AJAX is a very good feature to implement in todays web world but you also have to make count of the usability of it.
Cross Browser Compatible
If your web application is targeting multiple browser you will have to make sure that the AJAX Application works seamlessly on all the browsers.
Browsers Load
Making too much AJAX calls will degrade the browser performance and it will become slow. This will make the user experience horrible for your site.
Bookmarking
Users cannot bookmark the page having dynamic content fetched using AJAX. The reason is AJAX will fetch dynamic data from the server and the bookmark link will only store the static data stored in the internet cache folder.
Enable/Disable JavaScript
AJAX purely works with JavaScript and if the users browsers has JavaScript disabled then the AJAX functionality will not work.
Related Articles:
- HTTP Form POST Request using AJAX and Servlet
- Ajax Programming
- FAQ on AJAX Technology
- How AJAX Works
- Checking Session TimeOut during Ajax Call
- Ajax Programming with JSP and Servlets
- Ajax Tutorials – What is AJAX
- Ajax Programming using Prototype Framework
- HTTP FORM POST in PHP using AJAX
- How to make sequential ajax call
Good content
This is informative, but do you have any explanations on how to avoid some of these problems? Some seem unavoidable – e.g. what could be done regarding #1 with the No Back Button functionality?
hi there, good contents , just to answer Jon , nothing can be done about the back button , but you can provide an alternative through AJax , for example you can provide ‘next’ and ‘previous’ buttons and with onclick event , you get the requested data , etc…
and also to include links to the all/major sections of the site in one file and include this file in every page , this way a visitor will not need to hit back to see a previous page because everything is available in the top of the website.
about number 2 , i think we can set a timer , if no reply comes within 4 seconds , notify the user to hit the retry button.