Thread: Saving svg
View Single Post

  #3 (permalink)  
Old 03-09-2004, 02:08 AM
Seb
Guest
 
Posts: n/a
Default Saving svg

Hello Michel,

No i am not working with asv6 yet. I have tried to do what you told to, but i have difficulties to succeed.Here's my code:

Dess = svgdoc.getElementById("Dessiner");

if(data.success)
{
var Long=data.content.length;
message=data.content.substring(4,Long-4);
//message=data.content.getChildNodes;alert(message);
new_node =parseXML(data.content, document);
Dess.appendChild(new_node);
}

messge is the data.content without the <g> and </g>. That is what i would like , but if i put it instead of data.content; only my first group will appear.

Do you have any idea?

Thanks in advance, s?bastien.
Reply With Quote