L
Lester
I have a html page containing a <object id="aa" data="aa.svg" ....>.
Now what I want to do is change the color of some element inside the
svg when some link in the html doc is clicked. I'm using Javascript to
do this:
svgdoc = document.getElementById('aa').getSVGDocument();
element = svgdoc.getElementsByTagName('xxx')[0];
......
The problem is: element gives an undefined value!
I don't know how to access elements just using html javascripts (I
mean not svg javascripts).
Any ideas? Thanks.
Now what I want to do is change the color of some element inside the
svg when some link in the html doc is clicked. I'm using Javascript to
do this:
svgdoc = document.getElementById('aa').getSVGDocument();
element = svgdoc.getElementsByTagName('xxx')[0];
......
The problem is: element gives an undefined value!
I don't know how to access elements just using html javascripts (I
mean not svg javascripts).
Any ideas? Thanks.