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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opera & XML

Status
Not open for further replies.

jvdboom

Programmer
Aug 18, 2002
93
BE
I use this script to load an xml however if I use opera I get the alert('Your browser can\'t handle this script'); then ,is there also a method to use it wit opera
importXML();
function importXML()
{
if (document.implementation && document.implementation.createDocument)
{
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.onload = Startloading;
}
else if (window.ActiveXObject)
{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.onreadystatechange = tmp;
}
else
{
alert('Your browser can\'t handle this script');
return;
}
xmlDoc.load(docnaam);
}

function tmp()
{
if (xmlDoc.readyState == 4) Startloading();
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top