--- In [email protected], "Sayed Arian Kooshesh" <[EMAIL 
PROTECTED]> wrote:
>
> Hello all,
> 
> using the following javascript:
> 
>     var e = document.getElementById('statusLight');
> 
>     e.setTextContent("<p>Sending Data...</p>");

Hello,

there are two errors in your code: the method .setTextContent() does not exist 
in DOM and 
the element <p/> does not exist in svg.

The correct code would be:
e.firstChild.nodeValue = "Sending Data ...";

assuming that statusLight already has a text node. If it doesn't you have to 
first create 
one.

Have a look at the following basic tutorials to get you going:

http://www.carto.net/papers/svg/manipulating_svg_with_dom_ecmascript/index.shtml
http://www.carto.net/papers/svg/eventhandling/index.shtml

Andreas

> 
> I cannot get
> 
> <g id="statusGroup" visibility="visible" pointer-events="none"
> transform="translate(0,0)"  >
>   <text x="550" y="200" id="statusLight" font-family="Verdana"
> font-size="25" fill="blue" >
>    Loaded...
>   </text>
>   </g>
> 
> to change the text. When i walk it through the debugger the innerText
> property is changed. However, no change appears in the browser (FF).
> 
> Please help if you can,
> 
> Arian







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/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/
 


Reply via email to