[Webkit-unassigned] [Bug 6309] Bookmarking/Back Button Support for AJAX/DHTML Applications in Safari is Impossible

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Jan 31 15:08:33 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6309





------- Comment #3 from bkn3 at columbia.edu  2006-01-31 15:08 -------
Iframe history support is more of a hack to support history and bookmarking on
IE. If you were to work exactly like Firefox, which is much better at these
things, it would be better.

Here's what Firefox does:

1) If you change the window.location.href to an anchor:

window.location.href = "#foobar"

Then this anchor should go into the browsers history. I.e., if I start at the
website http://foobar.com, and add three anchors:

window.location.href = "#location1";
window.location.href = "#location2";
window.location.href = "#location3";

there should now be four things on the history stack:
http://foobar.com
http://foobar.com#location1
http://foobar.com#location2
http://foobar.com#location3

If I hit the back button, the browser should jump through each of these
locations, changing the browser's location bar to show each of them.

At the same time, if I have a JavaScript interval timer running checking the
browser's location:

window.setInterval(function(){
  var location = window.location.href;
  // check the location for a change
}, 200)

this timer should be able to see anchor location changes.

This is exactly how Firefox works, by the way, and it is the basis for AJAX
history support in that browser.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list