Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] a newbe polyline question

Expand Messages
  • sidonie
    Hi, Replace polyline.setAttributeNS(null, points , 30,50 20,somevar 10,60 ); by polyline.setAttributeNS(null, points , 30,50 20, +somevar+ 10,60 ); that
    Message 1 of 2 , Jan 27, 2005
    • 0 Attachment
      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" <meidanudi@...>
      To: <svg-developers@yahoogroups.com>
      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:
      > svg-developers-unsubscribe@yahoogroups.com
      > -or-
      > visit http://groups.yahoo.com/group/svg-developers and click "edit my
      > membership"
      > ----
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.