On Thu, 3 Oct 2002 05:00:44 -0700 (PDT), Ben Crane wrote:

>Hi list,
>
>I am trying to use an SVG viewer/clickable hyperlink
>to pass a value to a cgi script. I have this working
>using standard HTML and perl, but I'm hoping to
>emulate this using SVG.
>
>Any ideas, so far I've tried using:
>
><a
>xlink:href="http:\\x.y.z.co.uk\cgi-bin\match.cgi?xyref="*somevaluehere*>
>
>Is passing parameters using SVG as simple as HTML?

Hi,

Apart from the slashes are the wrong way around (try http://) and that your end quote 
is 
too early (try *somevaluehere*" ), it looks OK.

One gotcha I had is that simply using the ampersand (&) to separate CGI parameters 
does 
not work since the Adobe SVG Viewer, in particular, implements a more strict (XMLish 
rather than HTML) parsing method than what you're probably used to.  You must use the 
full 
enumeration of &amp; .

So, eg.

<a xlink:href="http://x.y.z.co.uk/cgi-bin/match.cgi?
xyref=*somevaluehere*&amp;zref=*anothervaluehere*"> ... other SVG ... </A>

... should work.

Let me know how it goes.

Brendan




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3424

Reply via email to