www.webdeveloper.com
Results 1 to 2 of 2

Thread: Detect if ActiveX is disabled

  1. #1
    Join Date
    Dec 2004
    Posts
    25

    Detect if ActiveX is disabled

    Hi,
    I am currently detecting for Shockwave within IE by doing the following:
    Code:
    var isInstalled = false;  
    if (window.ActiveXObject) {  
        var control = null;  
        try {  
            control = new ActiveXObject('SWCtl.SWCtl');  
        } catch (e) {  
            return;  
        }  
        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.

    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    "Please install or enable activeX, as appropriate."

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



Recent Articles