Dear Holger Will: Thank you very much for your reply. I did test my browser with html pages refreshing some values fed as an XML file and it looks, it is working just fine.. I tried your suggestion with
if(obj.success){ string = obj.content; alert("DONE!!!"); }else{ alert("request failed !") } And I am getting "request failed!" alert. I don't know if I'm missing anything.. Thank you very much for your help again. DD --- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> wrote: > deeti_dave schrieb: > > > 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 :( > > unfortunatly ActiveXObjects are disabled in ASV. > > > > > => > > 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. > > this suggest that your request was not successfull, that is ,in your > testFunction, you should put everything inside if(obj.success) {//do > stuff with the returened content}else{alert("request failed !")} > i would guess that its a server side error, have you tested the retured > XML directly in a browser ? > > > > > > > > > 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. > > > > > > > > > > ----- > > 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 > > > > * Visit your group "svg-developers > > <http://groups.yahoo.com/group/svg-developers>" on the web. > > > > * To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED] subject=Unsubscribe> > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/>. > > > > > > ----------------------------------------------------------------- ------- > > ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hrqg2qr/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123192507/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/