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

RE: [svg-developers] Digest Number 1889

Expand Messages
  • Richard Smith
    Message 1 of 1 , Aug 2, 2003
    • 0 Attachment
      <<
      The problem is that I won't know how many layers meet the criteria
      in advance. Is there some javascript command or method that would
      give me the number of layers with an ID beginning with "showMe".
      >>

      You could do something like

      var i = 1;
      while(layer = mySVG.getElementByID("showMe"+i") != null){
      ...
      i += 1;
      }

      assuming they count sequentially up from 1 with no gaps.

      RCS
    Your message has been successfully submitted and would be delivered to recipients shortly.