[OSM-dev] Addressable maps & updated URL?
xof at skynet.be
Thu Oct 4 17:18:02 BST 2007
Tom Hughes a écrit :
> The problem with using the fragment is that we'll have to do all the
> argument parsing ourselves as rails won't understand it :-(
Ho, that's right!... That is why we did not find something like
> query = location.search;
I wasn't aware of 'rails' (*)...
The standard mecanism for arguments passing uses a '?'. Replacing it by
a '#' is a kind of hack. As '#' is used for inside-page links, the page
is not (re)-loaded when something changes after the '#'.
Now, I don't know... (it would be nice if 'rails' was aware of the
(*) and still am... I don't know what it is for?, if it is important to
have it? if it can be changed?,... But, I am aware that cross-browser
compatibility is not a small issue.
There is a code for argument parsing in Flanagan's book (to be adapted
for the '#' as I wrote earlier). In the chapter 13, in a section 'The
code in http://www.oreilly.com/catalog/jscript4/toc.html ->13 -> The
But I didn't expect so many changes...
More information about the dev