This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Handle Bookmarks and Back Buttons in AJAX
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
If someone has to list out the drawbacks of using AJAX, the problem of setting a bookmark and going back to a page in history would top the list. But now, now more.
This article (refer title of this post) presents an open source JavaScript library that finally brings bookmarking and back button support to AJAX applications.
The principal discoveries of the framework presented in this article are twofold. First, a hidden HTML form is used to allow for a large transient session cache of client-side information; this cache is robust against navigation to and away from the page. Second, a combination of hyperlink anchors and hidden iframes is used to intercept and record browser history events, tying into the back and forward buttons. Both techniques are wrapped with a simple JavaScript library to ease development.