var hwpCtrl = document.frm.HwpCtrl; var uploadCtrl = document.frm.UploadCtrl; var ActiveXDetector = { //ACTIVEX_OBJECT_NAME: "NextGuideHwpBridge.NextGuideHwpBridgeX", getActiveX: function(ProgId) { try { var obj = new ActiveXObject(ProgId); if(obj) return obj; else ret = null; } catch(e) { ret = null; } return ret; } } if(ActiveXDetector.getActiveX('NextGuideHwpBridge.NextGuideHwpBridgeX')) { alert("ActiveX 설치"); } else { alert("ActiveX 설치 안됨"); }
function ActiveXInstalled(ProgId) { var isInstall = false; try { var obj = new ActiveXObject(ProgId); if (obj) return true; } catch (e) { return false; } return false; } if(ActiveXInstalled('NextGuideHwpBridge.NextGuideHwpBridgeX')) { alert("ActiveX 설치"); } else { alert("ActiveX 설치 안됨"); }
var bnResult = (typeof(uploadCtrl.GetDOM) == "undefined")? true : false; //var bnResult = (typeof(uploadCtrl.GetDOM) == "unknown")? true : false; if(bnResult) { alert("ActiveX 설치"); } else { alert("ActiveX 설치 안됨"); }