On Thu, 25 Jan 2007 20:49:47 +0100, Aaron Gray <[EMAIL PROTECTED]> wrote:
> At the moment I am using :- > > <svg xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" > version="1.1" > xml:space="preserve" > viewBox="0 0 1000 1000" > onload="Initialize( evt)" > > > > <g id="Chart" fill-opacity="0.7" stroke="black" > stroke-width="0.075cm"/> > > ~~~ > > function Initialize( LoadEvent) > { > SVGDocument = LoadEvent.target.ownerDocument; > > var g = SVGDocument.getElementById("Chart"); > > ... > > } > > How can I access the SVG DOM root element inorder to add the chart <g> > element using DOM ? SVGDocument.documentElement or SVGDocument.rootElement will get you the root element. You can see some nice svg examples covering this case and others here: http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/ Hope this helps /Erik -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ----- 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: mailto:[EMAIL PROTECTED] mailto:[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/

