How to determine if an ActiveX control is loaded?

I would like to integrate the Aurigma image downloader ( http://www.aurigma.com/Products/ImageUploader/ ) into the website.

In Internet Explorer, the control is an ActiveX control that issues a security request before the first installation.

To instruct the user on how to respond to this security warning, I would like to display an information window. I want to display this window, only the control is not loaded.

  if (controlIsNotLoaded()) {
    doSomething()
  }

How can i do this?

+5
source share
1 answer

, ( ), null.

function controlNotLoaded()
{
     var obj = document.getElementById("controlId");
     return (obj.object == null);
}

ActiveXObject, . , , , .

+6

All Articles