[whatwg] Updating Location Bar for RPC Type Apps

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:
http://www.rojo.com/manage-subscriptions#sortby=TAG"
This is useful for changing to a new bookmarkable state on the client 
side without reloading the page.

regards
Olav Junker Kj?r

Received on Friday, 22 April 2005 11:12:25 UTC