Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: SVG and HTML links

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 11/1/2004 11:56:00 AM

Richard wrote:

> I have a SVG document with links out to html pages which works when
> you run the SVG file i have tried to intergrate it into a coldfusion
> page and the links no longer work.
> 
> The SVG file is :
> 
> <?xml version="1.0"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg width="250" height="250">
> <a xlink:href="http://www.google.com">
> <rect fill="#00ffff" stroke="#000000" stroke-width="0" x="30" y="30"
> 	   width="100" height="100"/>
> </a>
> <a xlink:href="http://www.yahoo.com">
> <text fill="#000000" stroke="#000000" stroke-width="0" font-size="24"
>             font-family="@MS Mincho" x="30px" y="163px">Link to
> yahoo</text>
> </a>
> </svg>
> 
> If you double click the file it opens in IE and works fine, but when i
> copied the above code into a coldfusion page and added the usual
> namespace code:
> 
> <html xmlns:svg="http://www.w3.org/2000/svg">
> <object id="AdobeSVG"
> classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
> <?import namespace="svg" implementation="#AdobeSVG"?>
> 
> Then modifed the code to include the <svg: tag it no longer works, the
> code is below:
> 
> <svg:svg width="250" height="250">
> <svg:rect fill="#00ffff" stroke="#000000" stroke-width="0" x="30"
> y="30"
> 	width="100" height="100"/>	  
> <svg:a xlink:href="http://www.google.com">
> <svg:rect fill="#00ffff" stroke="#000000" stroke-width="0" x="30"
> y="30"
> 	width="100" height="100"/>
> </svg:a>
> <svg:a xlink:href="http://www.yahoo.com">
> <svg:text fill="#000000" stroke="#000000" stroke-width="0"
> font-size="24"
> 	font-family="@MS Mincho" x="30px" y="163px">Link to yahoo</svg:text>
> </svg:a>
> </svg:svg>
> 
> Any ideas why the links don't work when i intergrate the code into the
> CFM page?

What about the xlink namespace, don't you need to declare that too?

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent