Hi,

Replace polyline.setAttributeNS(null, "points","30,50 20,somevar 10,60");
by polyline.setAttributeNS(null, "points","30,50 20,"+somevar+" 10,60");

that should work


----- Original Message ----- 
From: "meidanudi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 27, 2005 9:10 PM
Subject: [svg-developers] a newbe polyline question


>
>
> Hi There,
> I am trying to draw a polyline by replacing some numbers with
> variables as in the following example:
> var somevar=50;
> ...
> polyline=svgDocument.createElementNS(svgns,"polyline");
> polyline.setAttributeNS(null, "points","30,50 20,somevar 10,60");
> ...
> It doesn`t work that way (works only while replacing somevar with a
> number).
> Any idea whats wrong.
> TIA
> Udi
>
>
>
>
>
>
> -----
> 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 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