Subject: error using XML save method
Posted By: Heroic Dose Post Date: 9/19/2003 9:28:06 AM
Greetings all,

I'm having a bit of a problem with the save method and I'm not sure how to fix it.

I have a javascript function in which I change some attributes of the XML and then save it to an xml file.  In the script I save the output file name "sponsors.xml" to a variable "newXMLFile".  At the end of the script I used the line "alert(xmlSrc.xml)" to see that my XML has been revised (this is for debugging only) and then use the line "xmlSrc.save(newXMLFile)".  When I load it, I get a "permission denied" and a reference to the save method line.  All of this is on the local machine and there are no permission restrictions on any files or folders I am dealing with. I am almost finished this project except for this problem and have wasted countless hours trying different things and scouring the web for help.  If anyone out there can help me with this, I would greatly appreciate it.

Dose
Reply By: TheBearMay Reply Date: 11/13/2003 12:24:43 PM
Generally HTML files are not "permitted" to save to the local machine.  To get around this change the extension from HTM or HTML to HTA (Hypertext Application).

Go to topic 5888

Return to index page 1006
Return to index page 1005
Return to index page 1004
Return to index page 1003
Return to index page 1002
Return to index page 1001
Return to index page 1000
Return to index page 999
Return to index page 998
Return to index page 997