Have you wondered how the websites like Gmail use Ajax and yet make sure that usability is not compromised? The trick is widely being used but still, I get almost 3-4 hits everyday on this topic. So I decided to explain it…
The problem: Sending requests to servers asynchronously using javascript to load content dynamically(or should I say AJAX?) has been around for quite some time. It became popular when Google started using it in Gmail and it has been in the buzz since then. The buzz has started dying down now with usability becoming the important aspect now. I completely agree with the trend and this post is about solving one of the problems related to it. The problem in one sentence is:
While making AJAX calls, how do you keep the behavior of back button from breaking.
To explain it further: When you are changing the state of a page, using Ajax, how do you make sure that the user can return to it or a meaningful state without problems?
The solution:
