Jonathan Watt schrieb:

> On 6/29/05, Holger Will <[EMAIL PROTECTED]> wrote:
> > Doug Schepers schrieb:
> >
> > > Rick Bullotta wrote:
> > > |
> > > | I'll check it out tonight (with a beer in my hand)!  Thanks
> > > | for the heads up.  Is browser<->SVG scripting support enabled?
> > >
> > > I'm not sure if it is enabled in the same way that it is for ASV+IE...
> >
> > yes it is, on <embed> you got the getSVGDocument() method, and on
> > <object> you can use contentDocument and contentWindow.
> > as far as i can tell the only missing part is the getWindow() method on
> > <embed>. so if you need to have functions defiend in your SVG and you
> > want to access them from your html,
> > youll have to use <object>.
>
> Actually you can use <embed>. You can then use the W3C standard
> property 'defaultView' on the SVGDocument object to access the SVG
> document's 'window' object (and hence the scripts defined in it). 

oh, i didnt know about the defaultView, good to know :-)

> So
> you can do all types of cross-document scripting in Firefox, but just
> in a different (i.e. W3C standard) way. I've put up heavily commented
> demos showing how to script from HTML to an embedded SVG document and
> it's scripts here:
>
> http://jwatt.org/svg/demos/scripting-across-embed.html
> http://jwatt.org/svg/demos/scripting-across-object.html
>
will these files stay at this url? the question is comming up regularly, 
and in the future i would like to point people to these fine examples.

all the best
Holger


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