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
> 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.

Received on Monday, 6 October 2003 13:04:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:59 UTC