Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 19th, 2003, 09:34 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old September 19th, 2003, 09:58 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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

--

Joe
Reply With Quote
  #3 (permalink)  
Old September 19th, 2003, 10:13 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Dose
Reply With Quote
  #4 (permalink)  
Old September 22nd, 2003, 08:05 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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

--

Joe
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace Method in JavaScript kwilliams Javascript How-To 2 April 3rd, 2007 12:50 PM
error in an xml javascript based slideshow Looney Classic ASP Basics 4 June 6th, 2005 01:16 AM
not able to save data using javascript rok Classic ASP Databases 0 April 21st, 2004 04:31 AM
Javascript SET Method? TSEROOGY Javascript How-To 2 February 7th, 2004 09:20 PM
error using XML save method Heroic Dose XML 1 November 13th, 2003 01:24 PM



All times are GMT -4. The time now is 04:49 PM.


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