Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!! XML and JS access denied

Status
Not open for further replies.

macwill

Programmer
Dec 8, 2002
13
CA
Okay here is the deal. If I use the below script on a file from my hard drive (example C:\\file.html) it works great. HOWEVER when I upload file.html and gandmtest.xsl to my web server (I don't have control over server settings) I get an "access denied" error.

Please, Please, Please any help/advise
mac-will

<script type=&quot;text/javascript&quot;>
// Load XML
var xml = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;)
xml.async = false
xml.load(&quot;
// Load the XSL
var xsl = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;)
xsl.async = false
xsl.load(&quot;gandmtest.xsl&quot;)

// Transform
document.write(xml.transformNode(xsl))
</script>
 
No one has any ideas? Please anything would be great.

The main goal here is to somehow incorporate an external xml news feed that I have formatted with xsl into an html document.

thanks
MAC
 
Its probably a permissions thing on your server.

You have to tell IIS that it has permission to read/write/whatever the files in the directory you're uploading the files to.

Jack
 
Macwill, I am having a similiar problem of &quot;Access is denied&quot; when using js to load an xml document from a url. I can't figure out how to set permission to work. The xmlDoc.Load(url) will work on my web site as long as the user logged in has an administrator account. But regular user cause the site to bomb at this point, xmlDoc.Load(url). They get an Access is denied message in internet explorer. HELP PLeas. Have you figured out a solution?

-Woods
jtwoods4@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top