Open Bug 369373 Opened 14 years ago Updated 13 years ago

When clicking the Back or Forward button on this AJAX website nothing happens

Categories

(Core :: DOM: Navigation, enhancement)

1.8 Branch
x86
Windows XP
enhancement
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: nathan, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

    I am writing this feature request because I think it is important for use with AJAX and the future of the internet.  Plus I would like to use it on my AJAX websites.
    The basic idea is to call a function in javascript every time one presses the back or forward button (e.g. HistoryGo(-1)).  This allows the AJAX code to "undo" or "redo" or simply react when the HistoryGo function is called.
   An example is www.artofthepotter.com.  Right now when you click the back button nothing happens.  What should happen is the previous content should be loaded.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Component: General → History: Session
Product: Firefox → Core
QA Contact: general → history.session
Version: unspecified → 1.8 Branch
One of the known things with AJAX, is that it does not automatically write any history. Thus the page goes back to a previous page, not the previous Ajax section. 

That said, The owner of any site with AJAX should provide either a set of links so that you can skip between sets of AJAX driven data, or code the JavaScript such that any AJAX call also writes to the history.

This is the fault of the site itself, and the JavaScript driven AJAX. 

It is not the fault of Firefox. This will occur in any browser.
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
You need to log in before you can comment on or make changes to this bug.