Hi there,
I have this problem which is really driving me nuts for a couple of days. Glad if any help or suggestion is given
Javascript will give me a pop-up error "Access is denied" when i try to load a simple xml file, which is in the server machine itself. The script is within a JSP page running apache tom-cat. I am running it with IE6 from an windows administrative acc straight on the server so there shouldn't be any access prob.
Code is something like that:
<script language="javascript>
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.load("C:/Documents and Settings/Desktop/BTBT/abc.xml)
// upon the load statement; javascript will prompt error and jsp dies off
</script>
My instinct is that Apache Tom-cat is prohibiting the access. The jsp is unable to load any xml files in all location, but is able to load files within the Tom-cat application folder. (C:\jakarta-tomcat-4.0.1\webapps\..) I am however unsure where to investigate further.
This is really driving me crazy. any advice is really welcomed.
Thks in advance
Darren
I have this problem which is really driving me nuts for a couple of days. Glad if any help or suggestion is given
Javascript will give me a pop-up error "Access is denied" when i try to load a simple xml file, which is in the server machine itself. The script is within a JSP page running apache tom-cat. I am running it with IE6 from an windows administrative acc straight on the server so there shouldn't be any access prob.
Code is something like that:
<script language="javascript>
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.load("C:/Documents and Settings/Desktop/BTBT/abc.xml)
// upon the load statement; javascript will prompt error and jsp dies off
</script>
My instinct is that Apache Tom-cat is prohibiting the access. The jsp is unable to load any xml files in all location, but is able to load files within the Tom-cat application folder. (C:\jakarta-tomcat-4.0.1\webapps\..) I am however unsure where to investigate further.
This is really driving me crazy. any advice is really welcomed.
Thks in advance
Darren