We help IT Professionals succeed at work.
Get Started

detecting if an activeX is installed

NickMalloy
NickMalloy asked
on
384 Views
Last Modified: 2014-05-01
I'm trying to check if the users have a certain ActiveX installed on there machine. I have found several versions of code My question is what do I put into prodId or Control to find the appropriate ActiveX? I've tried what I though might be it, but it doesn't seem to work. Where do I find the information to plug in?

function AXOrNull(progId) {
  try {
    return new ActiveXObject(progId);
  }
  catch (ex) {
    return null;
  }
}

Open in new window


To

 var plugin = navigator.plugins["control"];
            if (plugin) {
                // Contoso control is installed and enabled
                $("#open").hide();
            } else {
                try {
                    plugin = new ActiveXObject("control");
                } catch (e) {
                    // Contoso control is not installed or disabled
                    $("#open").show("slow");
                }
            }

Open in new window

Comment
Watch Question
Facets Developer
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE