i have this error in Chrome \"Uncaught ReferenceError: ActiveXObject is not defined \"
my code is
function loadModel() {
//------------
As stated by others, ActiveX is an IE-specific technology.
Try this:
if (window.DOMParser)
{ // Firefox, Chrome, Opera, etc.
parser=new DOMParser();
xmlDoc=parser.parseFromString(xml,"text/xml");
}
else // Internet Explorer
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(xml);
}