Hello all,
I am very new to svg. I am trying to access an element (defined by id) in a
svg file from HTML5, using jquery if possible, but it's not successful. Here is
part of the code:
*******************************
svg definition:
<svg version="1.1" id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
height="100%"
viewBox="0 0 100 100" enable-background="new 0 0 100 100"
xml:space="preserve">
<path id="dial" fill="#F7941E"
d="M89.944,50c0-22.091-17.908-40-40-40c-22.092,0-40,17.909-40,40c0,22.092,17.908,40,40,40V50
H89.944z"/>
</svg>
In HTML
<embed src='dial.svg' type='image/svg+xml' id="dialSvg"/>
// the following code is from online reading
var a = document.getElementById("dialSvg"); // this line is okay, the result
is HTMLEmbedElement
var svgDoc = a.contentDocument; // but contentDocument is not even defined in
HTMLEmbedElement
var d = svgDoc.getElementById("dial");
******************************************
Any help is greatly appreciated.
Thanks
Diana
------------------------------------
-----
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/