I've tested this and it seems that svgObject.contentDocument is null
if the SVG document being embeded using <object> is rendered using
ASV. Also, when ASV is running in Mozilla it seems that it doesn't
implement 'top' or 'parent'. I did say I don't use ASV in Mozilla. :-)

It looks like there's no way to communicate across the HTML-SVG
boundary in Mozilla if you are using ASV to render the SVG. I can only
suggest you try a Mozilla Firefox build with native SVG support. Unzip
and run mozilla.exe from the following.

ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/contrib/latest-trunk/firefox-win32-svg-GDI.zip

Be sure to shutdown any currently running instances of Mozilla Firefox
first including quickstart. Using this build you should then be able
to use contentDocument and defaultView as I described.

-Jonathan


On Wed, 26 Jan 2005 17:05:35 -0000, tomilay <[EMAIL PROTECTED]> wrote:
> 
> 
> Thanks for that info.  I am having problems with the
> <object>.contentDocument.defaultView approach.  I get the error
> "svgObject.contentDocument has no properties" when I use it as you
> suggested.  Would you have any idea why this is so?
> 
> Alternatively I would appreciate if you shared with me how to use the
> global "parent" or "top" objects and return a reference to the SVG
> document from the HTML.  If there are numerous approaches I would be
> able to look through them and figure out what I can retrofit to my
> problem.
> 
> Again, thanks.  Your responses have been of invaluable help to me.
>


-----
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