svg and javascript embedded in html

uddy <[email protected]> Fri, 4 Sep 2009 00:32:08 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <ba76d648-6a90-49e3-a75f-ffc60bb18ef7@s39g2000yqj.googlegroups.com>
Hallo,

I have svg file with javascript in it to allow me to manipulate the
objects. This svg I've embedded in an html file. From the html file i
access the nodes of the svg part in this file like this:

document = window.document.svg1.getSVGDocument();
svgElement = document.getElementById("elementname");

But now I need to use also some of the Variables in the JavaScript
part of the file. Is it possible to access them form the html(with
javascript of course) file like it's possible with the svg part? Right
now I'm putting all the values I need in a hidden Textnode and get
them as every other svg node. But thats not very effectiv and looks
ugly...

thx for any help.


mario