James G. Sack (jim) wrote:
One Javascript site that was like that had an "Update to URL..." button.
Effectively, you used the interactive mode to put things the way you
wanted, and then the URL was changed to reflect your state so that you
could get back to it. You could get to the same state without
Javascript, it was just a lot more annoying.
It was a nice way of handling the "Javascript breaks state" problem.
So I guess javascript should modify document.URL in such a way that it
can be honored on reentry (such as: ...?state=etwas) -- eh?
No, the URL never got "modified" by Javascript. Pushing the Update to
URL literally opened another http request from the server. The
difference was that the state of the system was in the URL this time.
This is useful for things like interactive map displays, photo browsing,
etc. Anything which has a rich interactive UI, but you would like to
get back to a specific point or pass that point on to someone else.
I'm an opponent of Javascript modifying anything outside of page
rendered elements.
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list