Calling a function within an SVG from it's embedding HTML? -
07-24-2007
, 04:29 AM
Hi,
I tried a lot of ways, but I just can't seem to get this accomplished.
If I got a SVG embedded like this :
<td align="center"><embed id="Info" type="image/svg+xml"
style="z-index:2;position:absoulute" wmode="trandsparent"
src="Info.svg"/></td>
and within it a function defined : function xx() { ... }
I should be able to call it from the javascript section within it's
containing HTML as follows :
document.embeds[ "Info" ].getSVGDocument().xx() ; or document.embeds[
"Info" ].getSVGDocument().rootElement.xx() ;
but as soon as I try to do so I get an Errorcode 0 saying that : The object
does not support this property or method.
Could someone tell me if it is possibly to call function within an SVG from
HTML or at least access global Variable within an SVG from HTML ?
ThanX in advance. |