I'm new to newsgroups, therefore sorry in advance if I don't follow propper
protocol...
I have a problem with access control in IE.
The implemented architecture is all processed in the client side, and the
webserver is just a dumb file server.
Problem:
I Have 2 directories.
One is public, with HTML/Js/XSLT.
The other has access control implemented be the webserver, requiring login
and pw.
When I run the page from firefox, it works fine, asking for the pw whenever
I first access the xml file in the "private" directory.
The problem arrises when I use IE. IE refuses to ask for thw login/pw, and
throws an "Access is Denied" exception.
Since I want cross browser functionality, i'm stuck. HAve lost 2 days of
research and found nothing...
Here's the JS function:
function loadXmlFileToDom ( xmlDocFileName ) {
var xmlDocLoad = null;
if( document.implementation && document.implementation.createDocument )
{
// MOZILLA
xmlDocLoad = document.implementation.createDocument( "", "", null );
xmlDocLoad.async = false;
xmlDocLoad.load( xmlDocFileName );
} else if( window.ActiveXObject ) {
// IE
xmlDocLoad = new ActiveXObject('MSXML2.FreeThreadedDOMDocument');
xmlDocLoad.async = false;
try {
xmlDocLoad.load( xmlDocFileName );
} catch ( errorObject ) {
alert ( errorObject.description + ": " + xmlDocFileName + "\n" +
(errorObject.number & 0xFFFF )+"\n" + errorObject.number + "\n" +
errorObject.name +"\n" + errorObject.message );
}
}
return (xmlDocLoad);
}
Best regards, and thanks !
Rui