W3C home > Mailing lists > Public > www-svg@w3.org > October 2003

Re: svg with http paramter

From: Jim Ley <jim@jibbering.com>
Date: Mon, 6 Oct 2003 17:03:57 -0000
To: www-svg@w3.org
Message-ID: <bls7b6$9au$1@sea.gmane.org>


"Robin Berjon" <robin.berjon@expway.fr> wrote in message
news:3F818658.3090603@expway.fr...
>
> Dean Jackson wrote:
> > On Wed 10 Sep 2003, Alfred Tsang wrote:
> >>Is it possible to pass a parameter to svg from http GET method?
> >>for example, http://localhost/somesvg.svg?foo=bar, how can I access foo?
> >
> > The SVG specification doesn't say anything about this.
> > Does document.location give you the info?
>
> document.location.query might give the entire string

Where did document.location come from, let alone document.location.query ???

SVGDocument.URL  is how you access the location in SVG as per SVG 1.1

I've no idea where you got those other ideas from, but document.URL seems to
provide everything you need to parse the elements.

document.location is AFAIK only an originally MS extension to the HTML DOM -
most UA's have it on the window element in such DOM's.
document.location.query I've never heard of anywhere.

Jim.
Received on Monday, 6 October 2003 13:04:45 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT