W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] Updating Location Bar for RPC Type Apps

From: Olav Junker Kjr <olav@olav.dk>
Date: Fri, 22 Apr 2005 20:12:25 +0200
Message-ID: <42693E89.5000807@olav.dk>
Brad Neuberg wrote:
> Whenever I implement a DHTML (Ajax?) type app that needs to talk to the 
> server without refreshing the client, such as through a hidden iframe or 
> an XmlHttpRequest object, I always wish that I could update the window 
> location bar to show a bookmarkable and copyable URL, but update it in 
> such a way that it _doesn't_ refresh the browser or change it's location 
> (window.location.href changes the location).

You can do this by changing the fragment, e.g. set window.location to:
This is useful for changing to a new bookmarkable state on the client 
side without reloading the page.

Olav Junker Kj?r
Received on Friday, 22 April 2005 11:12:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC