开发者

How to Send a XMLHttpRequest.responseXml to a JSP file after editing it in javascript?

开发者 https://www.devze.com 2023-03-08 16:44 出处:网络
I am having a xml file. I am loading the xml file using AJAX and making changes to the responseXml by adding new elements to it. Now i want to overwrite 开发者_如何转开发the xml file with modified xml

I am having a xml file. I am loading the xml file using AJAX and making changes to the responseXml by adding new elements to it. Now i want to overwrite 开发者_如何转开发the xml file with modified xml document by sending it to a jsp page. How to send the modified responseXml object to a jsp page?


If you already calling from a jsp, then put some dummy div like

<div id='abc'></div>

and then once u get a response after success add line as

document.getElementById('abc').innerHTML = response;

Let me know If u use any framework....


Have a read of this

How to send a XML doc to server from client in jQuery

0

精彩评论

暂无评论...
验证码 换一张
取 消