Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT


ARTICLES
Light-Weight AJAX History using history.js
03/22/2006, By urlgrey.org



One of the biggest hurdles when it comes to AJAX development is getting around that durned back button. Applications are getting so rich (and so sparse on page loads) that you can work for literally 10 or 15 minutes, only to find that when you hit the back button, you end up in a completely separate area, or even worse, a different website entirely.

A solution to this problem has been hacked on a few times, but I had yet to find a solution that actually worked in a simple way. The alternatives to the approach I’m about to lay out are detailed pretty well here. I’d say the closest to a workable solution would be Mike Stenhouse’s solution- but it isn’t simple enough- it requires iFrames and all sorts of nastiness, and isn’t easy to integrate into existing applications. So I set out to build a framework that is light weight and easy to build into existing applications. Its only dependency is prototype.js, which you should be using anyways.

What I came up with ended up being called history.js. You can go ahead and download it here.

   Read more...

 Rate this Ajax Articles
Error connecting to mysql