I asked a similar question last night and Jonathan Watt replied with this:

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
When using <html:object> in Mozilla you *can* access the SVGDocument

object by using the HTMLObjectElement.contentDocument attribute.

  http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-9893177

If you need to access the 'window' of the SVG document from a script
in the HTML document you can access it via the defaultView attribute
on the SVGDocument object.

  http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-DocumentView

Hence to access a function called mySVGFunc in the SVG document from a
script in the HTML document you would use:

  HTMLObjectElement.contentDocument.defaultView.mySVGFunc()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

I haven't quite figured it out yet, but it may help you find an answer.




On Mon, 07 Feb 2005 13:49:33 -0700, Rerun <[EMAIL PROTECTED]



academyhtml wrote:

>Hi,
>
>I'm using an embed along with a getsvgdocument() to access SVG
>elements from an HTML file (see below).
>
>embed name=svgFile1... (in the html)
>svgdoc = svgFile1.getSVGDocument(); (in the js)
>
>After pouring through the messages here I realize why this doesn't
>work in FF/Moz, but I wasn't able to find an alternative way of
>accessing the SVG DOM from the html.
>
>Can anyone provide me with an alt. way I can implement this, not using
>getsvgdocument that will work on both IE and FF/Moz?
>
>TIA
>
>
>
>
>
>-----
>To unsubscribe send a message to: [EMAIL PROTECTED]
>-or-
>visit http://groups.yahoo.com/group/svg-developers and click "edit my 
>membership"
>---- 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>.
>
>  
>


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to