Hi, Raghu-

An id is a unique identifier. You shouldn't have more than one element in a
single document with the same id, and if you do, the results of accessing
any of them by script will be unpredictable.

A solution would be to increment the ids ("arrowLine1", "arrowLine2",
"arrowLine3"), and to access them, iterate through the list one by one with
getElementById("arrowLine" + i).

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.
 

raghu raman wrote:
| 
| Hi
|    I create and append the path element with id named as 
| arrow line at some times  in a groupElement. Now I need to 
| get the element one by one using arrowLine. Is there any 
| functions availabel to get the all elements using elements id. 
|  
| var arrowLine=svgContentsDocument.createElement("path");
| arrowLine.setAttribute("id","arrowLine");
| arrowLine.setAttribute('stroke-width',200);
| arrowLine.setAttribute('stroke',"blue");
| arrowLine.setAttribute('opacity',"1");
| groupParent.appendChild(arrowLine);
|  
| kindly let me know your solutions.
| Thanks
| Raghu.



-----
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