View Full Version : AJAX Dynamic Content and Back and Forward Buttons

11-17-2006, 02:37 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD):

3) Describe problem: I have just started using this script to create a site. I have multiple "base" pages in thier own directories, but direct links from one page to another, while loading different contents on the page on the end from the default. (Great job on the scripts and ideas listed here.)

Now the only problem I'm having is when the ajax script is run to change the content of the page, it doesnt update the browser history, so when a user clicks the back button, most often it loads the current base page, or the last base page. I have read that it may be possible to use cookies, to store the history so the back button would work correctly, but havent had much luck finding an answer for that. I also thought that it may be possible to add the url directly to the window.history object, but havent had much luck making that work either. Any assistance would be greatly appreciated.

05-23-2010, 04:07 AM
I am having the same problem.
Does anyone knows of a solution or a site that teaches you how to solve this ?

05-23-2010, 04:27 PM
See this (http://onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html) (Ajax) and this (http://www.dynamicdrive.com/forums/showthread.php?t=54447) (no Ajax).
Arie Molendijk.