Results 1 to 2 of 2

Thread: Detect if ActiveX is disabled

  1. #1
    Join Date
    Dec 2004

    Detect if ActiveX is disabled

    I am currently detecting for Shockwave within IE by doing the following:
    var isInstalled = false;  
    if (window.ActiveXObject) {  
        var control = null;  
        try {  
            control = new ActiveXObject('SWCtl.SWCtl');  
        } catch (e) {  
        if (control) {  
            isInstalled = true;  
    This works as expected and if it fails to detect Shockwave I tell the user to install Shockwave.
    The problem comes when AcitveX is disabled as it still returns the same message that it's not installed. I would prefer to be able to include an extra step to detect if ActiveX is disabled, in which case I can tell the user to enable it rather than giving them false advice.

    My only idea would be to detect for an ActiveX Object that every IE user should have installed.

    Any ideas on what that ActiveX Object could be or any ideas on how I could tackle this problem are greatly appreciated.


  2. #2
    Join Date
    Mar 2007
    "Please install or enable activeX, as appropriate."
    Where used, return should be executed unconditionally and always as the last statement in the function.

    That's my signature, it's not part of the damn post!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center