Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading XML into Javascript for NS

Status
Not open for further replies.

toolkit

Programmer
Aug 5, 2001
771
GB
Hi there. I have a simple piece of code:
Code:
// simple browser test
var ns6 = document.getElementById && !document.all;
var ie5 = document.all;

if( ie5 ) {
    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async = false;
}
else if( ns6 ) {
    document.implementation.createDocument( "", "", null );
    // what to put here ??
}
xmlDoc.load( "names.xml" );
For IE, the xmlDoc.async specifies not to return control to the caller until the xml document is fully loaded. Is there a similar property that I must set for Netscape? Any NS-specific XML loading code would be much appreciated.
Cheers, Neil
 
Hi,
I am facing the same problem as you.
My problem is that I am trying to use XML and XSL.
For IE, it works fine.
But for Netscape and other browsers, the XML and XSL should be converted to HTML on the server before being served.
Hope this might help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top