--- In svg-developers@yahoogroups.com, "danielhamd" <[EMAIL PROTECTED]>
wrote:

> Also, can someone please explain how I can create a <title> and
> <description> field for these elements on the fly?  I can use
> createElement, but I can't figure out how to set the actual text of
> the title and description.

  var svgNs = 'http://www.w3.org/2000/svg';
  var circle = document.createElementNS(svgNs, 'circle');
  // set attributes as needed e.g.
  circle.setAttributeNS(null, 'r', '20');

  var title = document.createElementNS(svgNs, 'title');
  title.appendChild(document.createTextNode('A title for this circle'));
  circle.appendChild(title);
  document.documentElement.appendChilld(circle);




------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/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 - Join or create groups, clubs, forums &amp; communities. 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 - Join or create groups, clubs, forums &amp; 
communities. is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to