Everything seems to work well except the the browser's back button.
I use
reallysimplehistory to handle this when working with AJAX. It's really easy to use.
Code:
window.dhtmlHistory.create();
var pageChangeListener = function (newLocation, historyData) {
if (newLocation == "") {
// Not accessing an AJAX page
newLocation= "index";
}
// Load the page elsewhere (i.e. your programmer will need to implement this)
loadPage(newLocation);
}
window.onload = function () {
dhtmlHistory.initialize();
dhtmlHistory.addListener(pageChangeListener);
pageChangeListener(window.location.hash.slice(1));
};