Reloading SVG with JavaScript

csar18

New Member
I am creating a map from SVG vectors. I am getting the SVG directly from the server and i am only using the JavaScript to insert the entire bit of SVG. It does append the XML/SVG, but it does not draw it. \[code\]function reload(){xmlDoc=loadXMLDoc(getViewAddress()); // it loads an entire XML document from a Java servermap=xmlDoc.getElementsByTagName("g")[0];svgHead.appendChild(map);}\[/code\]Is it possible to draw SVG this way? Or do we have to draw the lines individually?
 
Back
Top