Hi There, I am using SVG, Javascript with dsp objects (dsp-server page scripting language). Now, I have to grab data from svg graph, which user can change, to the server for inserting into database.
I have to find a way to communicate with server from svg file. I have to send two whole arrays of values to server so server can insert them into database. I thought if I can transfer this array to xml file, and render a dsp sripct (dsp is a server page sripting language) object, I can insert into database. I have tried using two different ways: js_Vol is a javascript array which needs to be sent to server the database here is an object oriented and custom made. function send(){ alert(js_Vol); vol = '{'+js_Vol+'}'; var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); alert("I am HERE"); xmlDoc.async="false"; xmlDoc.load("writeNewStrikeVol.xml?AnchorVols="+vol); } this does not work, I do not get alert: "I am HERE" upon execution. I also tried var xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); instead of var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); which also doesn't work :( => Other way I thought of trying with getURL() and parseXML() which also does not work.. I don't get alert("past getURL) function send(){ alert(js_Vol); vol = '{'+js_VolY+'}'; getURL("writeNewStrikeVol.xml?AnchorVols="+vol, testFunction); //getURL("writeNewStrikeVol.xml", testFunction); alert("past getURL"); } function testFunction(obj){ var string = ''; if(obj.success){ string = obj.content; } alert(string); var vol = parseXML(obj.content,svgDocument); var volId=vol.firstChild.getAttribute("id"); alert(svgDocument); var volData=vol.firstChild.firstChild.getData(); alert("ID = "+volId+" and the tag contents = \""+volData+"\""); } and if I just say getURL("writeNewStrikeVol.xml", testFunction); I can get past the alert, and all other alerts are shown as blank = null except svgDocument. my xml file is: <?xml version='1.0'?> <newvol id="1000"> <!-- DSP Task.setParameter("aVols",22); test.render(); --> <!-- DSPOBJECT name = setVolNew sql = update NewVols set AnchorVols=aVol; --> <!-- DSPOBJECT name = test aStrikes aVols --> </newvol> Thank you very much for any suggestion. ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12htbe8lo/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123095121/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</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/