Hi, Francis. Thank you very much!!!
Verusa --- In svg-developers@yahoogroups.com, "Francis Hemsher" <[EMAIL PROTECTED]> wrote: > > Hi Verusa, > I use IE6 and Active Server Pages. > > I send XML to a file, then, I guess you can insert it as svg > elements into SVG file. However, I keep it as XML and then download > it later to propagate an SVG file on the client. > > Below is an example with one element: > > function sendCircle() > { > circleXML="<?xml version=\"1.0\" ?><circle r='10' cx='20' cy='20' > fill='green'/>" > var xmlFile = new ActiveXObject("Microsoft.XMLHTTP"); > xmlFile.Open("POST", "sendSvgXml.asp", false); > xmlFile.Send(circleXML); > } > The sendSvgXml.asp file on server then processes it: > > <OBJECT id="circleXML" progid="Msxml2.DOMDocument" > runat="Server"></OBJECT> > <OBJECT id="mySvgXML" progid="Msxml2.DOMDocument" > runat="Server"></OBJECT> > > <%@ language=javascript %> > <% > Response.Expires = -1000; > circleXML.load(Request); > circle=circleXML.documentElement > > function verifySvgXML(){if (mySvgXML.readyState != 4){return false;}} > > file="mySvg.xml" > mapFile=Server.MapPath(file) > mySvgXML.async=false; > mySvgXML.onreadystatechange=verifySvgXML; > mySvgXML.load(mapFile) > mySvgXML.documentElement.appendChild(circle) > mySvgXML.save(mapFile) > %> > > > mySvg.xml could look this when it is empty: > <?xml version="1.0"?> > <SVG/> > > When you append the circle then it would look thus: > <?xml version="1.0"?> > <SVG> > <circle r="10" cx="20" cy="20" fill="green" /> > </SVG> > > > Francis > > > --- In svg-developers@yahoogroups.com, "Verusa Domethildes" > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I'm developing an application that the user can create many > objects. I > > did it in client-side. So, I have to send this objects to server, > to be > > save in a database. Ajax? SOAP? Could you post a URL or send me a > > simple example? > > > > Thanks for your attention. > > > > Verusa > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/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/