473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

SVG and HTML links

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?

Regards

Richard
Jul 20 '05 #1
1 3430


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/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Markus Ernst | last post by:
Hello I have a regex problem, spent about 7 hours on this now, but I don't find the answer in the manual and googling, though I think this must have been discussed before. I try to simply...
14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
68
by: Steve | last post by:
Hi There, Prob a simple answer to this (I hope) but I can't quite work it out yet... I have this in a page: <map name="Map"> <area shape="rect" coords="43,68,52,77" href="map.html"...
10
by: Papa.Legba.666 | last post by:
There are many good HTML validators, not least, of course being w3c's. However, they only handle one page at a time. Is there a free web based served, or pc program, which will crawl my site...
6
by: vandalo | last post by:
Hi all I developed a service which can convert an office document (word, excel, powerpoint into HTML and save it on the file system To do this I use the "save as" functions of the office...
5
by: Alan Silver | last post by:
Hello, I'm not sure if this is a stupid question or not, so here goes. Suppose I want to achieve the very common design layout as shown here... http://www.kidsinaction.org.uk/floating.html This...
4
by: qwweeeit | last post by:
Hi all, I'm a newbie in JS, but I've used it to print html + additional informations: - list of links (also internals) both text (document.links.text) and href - title (document.title) - URL,...
2
beacon
by: beacon | last post by:
I'm having trouble with a personal web page that I'm designing for work. I'm not well versed in HTML and could use some assistance. Currently, when I open the browser, the table in the head at the...
0
by: Formula | last post by:
Hello everybody,because I am newbie in python two weeks only but I had programming in another languages but the python take my heart there's 3 kind of arrays Wow now I hate JAVA :) . I am working...
2
by: kristin09 | last post by:
Hi guys, I have a windows mobile application that has html pages generated on the fly (some pages have links in them). With the new browser MSIE 6.0 the links on the pages are not read as links....
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.