RE: [svg-developers] how to set a link to a svg element by JavaScript

2005-02-17 Thread Doug Schepers
Hi, Spring- You're making some wrong assumptions about SVG. 1) In order for text to show up, you must have a 'text' element, not simply place text in a container element like an 'a' element; 2) You cannot create a DOM object by simply making a string; you must create a new element from scratch.

[svg-developers] how to set a link to a svg element by JavaScript

2005-02-17 Thread tangdm
Hi All, I need to set different links(.pdf, .doc, .ppt) to a svg element, say varLink when I click on different map objects. I failed when I tried to change the node value of the varLink in my javaScript by svgDoc.getElementById("varLink").firstChild.nodeValue=" Here is a link"; Please