p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   error using XML save method in javascript (http://p2p.wrox.com/showthread.php?t=4054)

Heroic Dose September 19th, 2003 09:34 AM

error using XML save method in javascript
 
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

joefawcett September 19th, 2003 09:58 AM

What host are you running this script in, IE, WSH? If IE what security zone is indicated in the status bar?

--

Joe

Heroic Dose September 19th, 2003 10:13 AM

I'm using IE6, no security zone listed in the status bar.

Dose

joefawcett September 22nd, 2003 08:05 AM

I don't believe it :). There is nothing in the right hand side, "Internet", "My computer" or such?

--

Joe


All times are GMT -4. The time now is 05:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.