jacasoj Posted April 21, 2006 Share Posted April 21, 2006 I want to save data to an XML file and update an attribute. I can load it perfectly, but when it comes to save it, the following JS error appears "Parameter not correct" if I run it from the IIS, "Permission Denied" if I run it directly from the Folder. Both appear in the 'camaraXML.save("CamaraXML.xml");' line. I'm using XMLHTTP for this. Any suggestion?I have this code:-------------------------- CODE ---------------------------------function funSaveDocument(strIP,strNo) { camaraXML.onreadystatechange = function () { if (camaraXML.readyState == 4) { funAttWriter(); } } camaraXML.save("CamaraXML.xml");}function funAttWriter() { var x = camaraXML.getElementsByTagName("timelastmove"); x.item(0).setAttribute("hora","change");}--------------------------- CODE ------------------------------ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now