Hai sakthidasan, Try: var grouptit=svgDocument.createElementNS(svgns,'g');
Regards, Francis --- In [email protected], "sakthidasang" <[EMAIL PROTECTED]> wrote: > > > Hai, > > Thanxs for the reply to my previous request on map.I learned that it > is not possible to get the coordinates of the map without any object.I > tried by placing circles on the map (country) ,and that was possible > only by using induvidual circle id.is there any possibility for > creating group ids.following is the code . > > <svg onload="makeShape(evt)" xmlns="http://www.w3.org/2000/svg"> > <script type="text/ecmascript"><![CDATA[ > var svgns = "http://www.w3.org/2000/svg"; > function makeShape(evt) > { > if(window.svgDocument==null) > svgDocument = evt.target.ownerDocument; > var shape = svgDocument.createElementNS(svgns, "image"); > shape.setAttributeNS(null,"x", 240); > shape.setAttributeNS(null,"y",0); > shape.setAttributeNS(null,"height",600); > shape.setAttributeNS(null,"width", 600); > shape.setAttributeNS ("http://www.w3.org/1999/xlink", > "xlink:href","indiamap.gif"); > svgDocument.documentElement.appendChild (shape); > show(); > } > function show() > { > i=2; > var > grouptit=svgDocument.createElementNS(svgns,'group'); > var groupid =svgDocument.createGroupNode(i); > alert(groupid); > grouptit.appendChild(groupid); > var circle=svgDocument.createElement ("circle"); > circle.setAttribute("id","i"); > circle.setAttribute("cx",450+i); > circle.setAttribute("cy",564+i); > circle.setAttribute("r",3); > circle.setAttribute("fill","red"); > svgDocument.documentElement.appendChild(circle); > svgDocument.documentElement.appendChild (grouptit); > > } > ]]> > </script> > </svg> > > i tried by creating group id for each circle that was in vain.pls can > anyone help me.group id has to be created for all the circles(say some > n ). > > thanks®ards, > sakthidasan. > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/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/

