You are viewing this page out of context. To see it in the context it is intended please click here.
About This Page
Reply posted by Sean Peters on Fri 12 Apr 2002 in response to Putting Domino's XML to use
JS error - "Access is denied"
Hmm. Spent some time trying to get your solution to work. One problem (I think)I found: there are a couple of double quotes in the script where I think there
should be single quotes, e.g: "xslDoc.load("transform.xsl")" should be
"xslDoc.load('transform.xsl')". Found a couple instances of that.
But after making that substitution, it still doesn't work. In IE 5.5, I get
this JS error page:
Line: 11
Char: 0
Error: Access is denied
Code: 0
URL: .../test.nsf/xml_test?OpenPage
This is the source of the page:
<html>
<head>
<title>XML test page</title>
</head>
<body onLoad="var xmlDoc
var xslDoc
xmlDoc = new ActiveXObject('Microsoft.XMLDOM')
xmlDoc.async = false;
xslDoc = new ActiveXObject('Microsoft.XMLDOM')
xslDoc.async = false;
xmlDoc.load('http://www.codestore.org/A55692/store.nsf/xml?ReadViewEntries&Prefo
rmat&Count=9999')
xslDoc.load('transform.xsl')
XMLViewData.innerHTML = xmlDoc.documentElement.transformNode(xslDoc)">
<SPAN id="XMLViewData"></SPAN>
</body>
</html>
I've always been mystified by the JS error line counting system - I can't even
determine which line the error is in... do I start counting with zero or one?
And do I start at "<html>" or the first actual line of JS code?
Appreciate any feedback on this matter.
Sean