Solved

permition

Posted on 2002-07-23
10
511 Views
Last Modified: 2008-03-04
When I tryed to save the data to the xml file:
{
xmlDom.save('Customer.xml')
}
, it gives the error message  "Access is denied" (one word permission)

How can I give permission to write data to the xml file?
0
Comment
Question by:dik_sychev
  • 2
  • 2
  • 2
  • +3
10 Comments
 
LVL 12

Expert Comment

by:lexxwern
ID: 7173609
is it a unix server, if so then chmod it and give it 777 rights.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 7173850
And if it is a windows server, right click on the file, choose properties, then security and change the security settings to suite your needs..

Max.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7174461
And if it is on the client you cannot due to security constraints.

CJ
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7174462
Make it an .hta file if you do want it to save.

CJ
0
 
LVL 12

Expert Comment

by:lexxwern
ID: 7174491
or maybe use the .htaccess file to define rights in your directory,

more help at http://www.apache.org/
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:zvonko
ID: 7175822
You have to set "Accessing Data Across Domains" to "enable"
Local files are treated as own domain.
Look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmconxmlclientsecurity.asp
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7191503
Hello,

try this:
<html>
<script language="JavaScript">
function writeXML()
{
var oXML = new ActiveXObject("Microsoft.XMLDOM");
var oRoot = oXML.createNode("element", "customers", "");
oXML.appendChild(oRoot);
var oNode = oXML.createNode("element", "customer","");
oRoot.appendChild(oNode)
var oNode2 = oXML.createNode("element", "order","");
oNode.appendChild(oNode2)
alert(oXML.xml)
   var fso = new ActiveXObject("Scripting.FileSystemObject");
   var MyFile = fso.CreateTextFile("c:\\prices.xml", true);
   MyFile.Write(oXML.xml);
   MyFile.Close();
}
writeXML();
</script>
</html>

Good luck,
zvonko

0
 
LVL 12

Expert Comment

by:ahosang
ID: 8330354
This question has been abandoned. I will make a recommendation to the moderators on its resolution in a week or so. I appreciate any comments that would help me to make a recommendation.
 
In the absence of responses, I may recommend DELETE unless it is clear to me that it has value as a PAQ. Silence = you don't care
 
ahosang
0
 
LVL 12

Expert Comment

by:ahosang
ID: 8527927
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
ahosang
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8627057
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show confirmation alert in Jquery 14 43
Why does my button disappear? 3 28
Message not shown 5 33
bootstrap footer centering and columns alignement 3 23
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now