New Response

« Return to the main article

You are replying to:

  1. 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.


Your Comments