View Single Post
  #1 (permalink)  
Old January 26th, 2005, 01:31 AM
nana nana is offline
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access is denied" load a simple xml file

Hi there,

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. 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/test.xml)

// upon the load statement; javascript will prompt error and jsp dies off

</script>

Another question i wanna ask, can i run the xml file at client side using the same javascript coding like above?

Hope u guys can help me.
Thanks in advance.

Reply With Quote