Gissur Þórhallsson schrieb: > Hi guys > > > > I'm working with SVG(with ECMA-script)- in an ASP page my problem is > this: I created a web-service using Batik which rasterizes SVG files > for me. All I supply it with is an URL to the SVG file and an URL for > the page that needs the rasterized file. No problems on that end. > > > > My problem is that I have a webpage displaying an SVG graphic which > the user can edit. I want the user to be able to press a button that > will ship the displayed SVG off to my Rasterizer where I work my magic > and send the output to points forward. Not a big deal. What I can't > figure out is how I can get a snapshop of the SVG file the user is > editing to a file on the server. > > > > I've tried running around with the postURL and getURL methods - but I > can't seem to make them work(I get success - but I don't think I > understand exacly what is going on - maybe some pointers on that would > help) - also my run-ins with ActiveX have left me less than impressed. > > > > At the moment I'm just looking for something that works on MSIE(ALL my > users run MSIE) also I'm not at all afraid of the potential > compatibility of using the ASV-specific API. > > ________________________________________________________________ > Kær Kveðja / Best Regards, > > Gissur Þórhallsson <mailto:[EMAIL PROTECTED]> · B.Sc > Hugbúnaðarsérfræðingur · Software Consultant > Sími/Direct: +354 540 2500 · Fax: +354 562 2819 > www.loftmyndir.is <http://www.loftmyndir.is/> > Hi Gissur
as the wiki is back up ( thank doug ! ) there are some usefull resources available again. so for postURL see http://svg-whiz.com/wiki/index.php?title=PostURL and printnode see http://svg-whiz.com/wiki/index.php?title=PrintNode this little example might get you started: getURL.svg --------------------------------------------------------------------------- <svg xmlns="http://www.w3.org/2000/svg"> <script type="text/javascript"><![CDATA[ function postData(){ drawing=document.getElementById("drawing") postURL("test.asp",printNode(drawing), callback) } function callback(urs){ alert(urs.content) } ]]></script> <g id="drawing" onclick="postData()"> <rect id="r" x="20" y="20" width="40" height="30" /> </g> </svg> test.asp ----------------------------------------------------------------------------------------- <[EMAIL PROTECTED]"vbscript"%> <response> <% set doc=server.createObject("msxml2.domdocument") doc.load request response.write doc.xml %> </response> hth Holger p.s.: its quite straight forward to implement postURL with XMLHttpRequest in mozilla . -- if this information was usefull, please try to help someone else ! http://www.treebuilder.de ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/

