--- In [email protected], "pothoven" <[EMAIL PROTECTED]> wrote:
> How can I access the data of the embedded
> SVG to manipulate it?
If you have e.g.
<embed name="embedName"
type="image/svg+xml"
src="file.svg"
width="somewidth" height="someheight">
in the HTML document then you can access the embed element as
var embed = document.embeds.embedName;
and then if the viewer/browser supports SVG and script access to the
SVG then it exposes a method getSVGDocument e.g.
if (typeof embed.getSVGDocument != 'undefined') {
var svgDocument = embed.getSVGDocument();
// now use the the SVG document to access nodes with
// getElementById, getElementsByTagNameNS,
// to create nodes with e.g. createElementNS
}
IE/Win with the Adobe viewer exposes that method getSVGDocument and
the native SVG implementations in Firefox 1.5 and Opera 9 do too.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
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/