Jump to content

XMLHttpRequest


eTianbun

Recommended Posts

Am just trying to GET a TXT/XML file in my local system using AJAX, but i keep geting the error: " Access denied!" any idea why?EXAMPLE

x = new XMLHttpRequest;

y=x.open('GET','file.xml',true); //ERROR: Access denied!

Edited by eTianbun
Link to comment
Share on other sites

Firefox will show something in the error console if the document you're loading is not XML but you can ignore that. Besides the error, is the program doing what you want it to?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...