to access the root element you can simply use "rootElement"

either:
* document.rootElement
* or in your case: SVGDocument.rootElement

Note that what you do below (SVGDocument = 
LoadEvent.target.ownerDocument;) is not really necessary. the 
document object is automatically available anyway. It doesn't hurt 
what you do, but it is also not necessary.

What I don't understand is why you need to add <g id="Chart"/> to the 
root element. Isn't it already a child of the root element in your 
case below?

Anyway, I hope this helps,
Andreas

--- In [email protected], "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 ?
> 
> Many thanks in advance,
> 
> Aaron
> 
> 
> [Non-text portions of this message have been removed]
>




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

Reply via email to