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

[whatwg] Updating Location Bar for RPC Type Apps

From: Jim Ley <jim.ley@gmail.com>
Date: Sat, 23 Apr 2005 20:18:53 +0100
Message-ID: <851c8d3105042312182f601b89@mail.gmail.com>
On 4/22/05, Olav Junker Kj?r <olav at olav.dk> wrote:
> 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.

Hmm, but then you need client-side intelligence to test the hash
portion of the string, and then make subsequent requests to get the
relevant data from the server.  The original suggestion is much more
powerful than that, as it allows the server to respond directly to a
request.

I've certainly wanted this, a sensible compromise is to only be able
to set the query portion of the url.

Jim.
Received on Saturday, 23 April 2005 12:18:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:22 UTC