Can anyone tell me  tell me how to refer the SVG if I've displayed / 
created it dyanamically via a php script without beeing previously 
saved on HDD ?

MySVG = SVGName.getSVGDocument(); HOW SHOULD I DO ?

Kind regards and thank you
Petronel

--- In [email protected], [EMAIL PROTECTED] wrote:
>
> Martin, 
> 
> Here's a short example using JavaScript and the SVG embedded in an 
> HTML file.
> 
> <EMBED ID="SVGName" WIDTH="100%" HEIGHT="92%" NAME="SVGName"
> SRC="YourFile.svg" type=image/svg-xml >
> 
> after embedding it, you need the pointer to the document object as 
> follows (JS from now on):
> 
> MySVG = SVGName.getSVGDocument();
> 
> Now you have dynamic access to your document through that object. 
So 
> if you have a rectangle with the ID="rect1" then you can do the 
> following to change its position
> 
> MySVG.getElementById("rect1").setAttribute("x", 10);
> 
> or to remove the first child node of the G element "group1":
> 
> Group = MySVG.getElementById("group1");
> Save = Group.removeChild(Group.childNodes.item(0));
> 
> The removed node is stored in the Save variable (optional).
> 
> The rest from here is getting to know the DOM and all its methods 
and 
> properties to modify the SVG tree to your needs.
> 
> Let me know if this helps. I know you wanted true Java examples, 
but 
> there is a lot of them out there. Look for the SVG Toolkit at 
> http://www.cmis.csiro.au/svg/ which should help you.
> 
> Regards,
> Luke Wrobel
> GTG Technologies
> 
> --- In [EMAIL PROTECTED], Martin Girschick <[EMAIL PROTECTED]> 
> wrote:
> > Hi,
> > 
> > I searched the documentation for it, but I couldn't find 
anything. 
> I 
> > want to open an svg-image with a java-applet and then add some 
> nodes 
> > to it, if someone could give me a few lines of how to do this - 
> would 
> > be great!
> > 
> > Thanx,
> > 
> > Martin
> > 
> > P.S. Is there a javadoc for the SVGViewer-Classes?
>






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