Hi Jon,

I'd suggest for now you use setAttributeNS(null, 'p', '<value>') since I
don't think the SVGPointList interface is supported by ASV. It just makes
things a bit more portable. Having said that:

On 10/16/05, Jon Saints <[EMAIL PROTECTED]> wrote:
>
> Simple question from a newbie: How can I create an SVG
> polygon in mozilla firefox using javascript?
>
> So far I have:
> var poly =
> document.createElementNS("http://www.w3.org/2000/svg";,
> "polygon");
>
> What should I put inside poly.points.appendItem( ) to
> add points?
>

An SVGPoint created using

var p = document.documentElement.createSVGPoint();
p.x = 10;
p.y = 10;
poly.points.appendItem(p);

http://www.w3.org/TR/SVG/coords.html#InterfaceSVGPointList
http://www.w3.org/TR/SVG/coords.html#InterfaceSVGPoint


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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