W3C home > Mailing lists > Public > www-style@w3.org > November 2004

Re: Multiple Background Images

From: by way of Bert Bos <ted@ahi.uhh.hawaii.edu>
Date: Mon, 8 Nov 2004 14:53:35 +0100
To: www-style@w3.org
Message-Id: <200411081453.35899.ted@ahi.uhh.hawaii.edu>


Actually, it's the location property of the document,
not the URL property that allows access to parameters
in JavaScript, but in practice, JavaScript does allow
access to parameters.  If SVG could do the same when
called upon by background: url(a.svg?bg1=foo,bg2=bar)
or something similiar, we would have better flexibility.

...
document.write(document.location);
</script>
<form method='GET' action='self.html'>
<input type='text' name='foo' value='This is foo'/>
<input type='submit'/>
...

(This example in self.html works with Gecko
and MSIE and maybe others.)

If recommending against using url() for passing
URL-encoded parameters, how would you recommend
to pass parameters?

_-Ted Shaneyfelt

p.s. I'd also be interested in using XSLT to generate
the svg background document, if there were a
mechanism to do so.

If XML could build the document with XSLT on the
fly (if XML or XSLT could accept parameters in this
manner):
 - The layering could be handled by SVG,
 - The scalability could be handled by XSLT,
 - The parameters could be handled by XML and the url()
  interface (or something like it, perhaps call it location()
  instead of url() if you like).
Received on Tuesday, 16 November 2004 17:15:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:34 GMT