Hi all,
I have the following situation and I’m hoping that one of you can point me in the right direction.
I have a web page that is not and will not be hosted on a web server. So no PHP, ASP solutions will work here. The method of access is File://. We only run IE 7/8 so no solutions that are firefox only.
Here is what I want to do: Use javascript to build a table by reading a XML file stored in the same folder. When I try to use something like:
[CODE]function readFileHttp(fname, callback) {
xmlhttp = getXmlHttp();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState==4) {
callback(xmlhttp.responseText);
}
}
xmlhttp.open(“GET”, fname, true);
xmlhttp.send(null);
}
xmlDoc=readFileHttp(“123.xml”);
I get a permission denied error at:
[CODE]xmlhttp.open(“GET”, fname, true);
My understanding is that Javascript does not allow scripts to access local files. My hope is that there is a way around that.
Any ideas?