i have this error in Chrome "Uncaught ReferenceError: ActiveXObject is not defined "
my code is
function loadModel() {
//----------------------------------------------------------------------------------------------
document.getElementById("lModelMsg").innerText = "Loading...";
document.getElementById("lPartMsg").innerText = "";
var dMfg = document.getElementById("dManufacturer");
var id = dMfg.options[dMfg.selectedIndex].value;
var xml = CreateAsset.LoadModel(id);
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
var Flag;
Flag = xmlDoc.loadXML(xml.value);
if (Flag) {......................
ActiveX is a Microsoft-proprietary framework. It is supported only in MS products (i.e, IE)
You can use jQuery's parseXML method as a cross-browser alternative.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With