Gissur Þórhallsson schrieb:

> Hello
>
> I'm trying to write the current state of an SVG image to file via 
> external javascript . The only way I know of, is to use the 
> printNode() function, but that only appear to work if your script is 
> inline(in the SVG file).
>
>
>
> My dilemma is this:
>
> I have an SVG file embedded in a 3rd party web app(Geomedia Webmap). 
> There is a button which calls a .js onClick.
>
> I can access the SVGDocument well enough through the DOM, but I can't 
> figure out how to save to to file. I read somewhere that creating an 
> ActiveX XML object and streaming the SVGDocument into that would be 
> the way to go, but for some reason I have not been able to figure out 
> how exacly.
>
>
>
> Is there anybody who can suggest at least where to look, I've scoured 
> all the material I can find, but usually the solution involves the 
> printNode function.
>
> Note: There is also the possibility of posting the SVGDocument to a 
> web page (via POST) but that of course requires me to parse the 
> SVGDocument to a string, which also involves printNode()
>
>
>
>
>
> ________________________________________________________________
> Best Regards,
>
> Gissur Þórhallsson <mailto:[EMAIL PROTECTED]>  · B.Sc
> Software Consultant
> Direct: +354 540 2500 · Fax: +354 562 2819
> www.loftmyndir.is <http://www.loftmyndir.is/>
>
>

Hi Gissur

you can use printNode from an external script by getting your 
svgDocuments window object and call printNode on that.
but be aware that printNode is a propritary extension of Adobe. if you 
like to do this in mozilla with nativ svg support, you could use a 
DOMSerializer.
here is a nicely commented example how to get to the svgs window object:
http://jwatt.org/svg/demos/scripting-across-embed.html

hth
Holger

"if this information was helpfull, please try helping someone else."
http://www.treebuilder.de




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h8ork44/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124804829/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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