Thursday, November 8, 2007

Back and forward buttons


Ajax is excellent, of course, but it has its own problems as well. One of the most popular ones is that Ajax requests are not registered in the browser history. So you can not undo or redo them by means of the browsers Back and Forward buttons. Google, Gmail and GWT (Google Web Toolkit) support these functions and the reason is in Google Web Toolkit all the Ajax functionalities are not amazingly based on XMLHttpRequest object! Yes they use IFrames as well, so they can handle the browser history with back and forward buttons.
They started developing Gmail as their first Ajax application many years ago and that time XMLHttpRequest was not supported by all the browsers and it was not accepted by W3C also. But in the current time what is the best solution for keeping the history of Ajax requests and handling them by Back and Forward buttons???

No comments: