View Single Post
  #3 (permalink)  
Old February 17th, 2005, 02:00 AM
Kalpakavalli.S Kalpakavalli.S is offline
Registered User
Join Date: Feb 2005
Location: chennai, tamilnadu, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

actually i too have encountered a very similar problem. I had to use a round about way to cater the "Access Denied".

In Xmldom activex there are two functions to load xml

1) Load method to load a xml from a file, the string passed as a parameter is a filename along with path

2) LoadXML method to load a xml data directly by storing in string

The first method gives the "Access denied" problem so i tried to use the second method which did work

The javascript code is as follows, as you are already using an activex control i think you can use one more in teh same code FSO - File System Object

<script language="javascript>

var fsoXML = new ActiveXObject("Scripting.FileSystemObject");
var XMLFile = fsoXML.OpenTextFile(("C:/Documents and Settings/test.xml",1);
var Data = XMLFile.ReadAll();

var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;

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


Please check the code, it will surely work