.
> This thread has confused me.
...
>
> You have a piece of functionality you want to execute; you
> apparently name it "init()". Should it properly belong in
> the SVG object, or the parent document? Either can be
> coded effectively, but they're not identical. I *think*
> you want the init() definition to appear as part of the
> SVG definition; in that case, you'll need to vector through
> .contentDocument to access what "belongs" to the SVG.
Sorry for the confusion. Hopefully my last post to this thread will clarify ...
> <object id = 'map' type = 'image/svg+xml' data = 'special_map.svg' ...
>
> map = document.getElementById('map')
> svg_document = map.contentDocument;
> location = svg_document.getElementById(locator)
>
I tried the equivalent of this in my code (ie, .contentDocument instead of
getSVGDocument() and using the object tab instead of embed) from a button
onclick event. Again, this works in Firefox but not in Chrome: using
.contentDocument still gives a null value.
------------------------------------
-----
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> 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/