none
Internet Explorer 11 Preview: ActiveX not loading

    Question

  • The following is intended as a test to see if the browser supports Active-X w/o

    actually loading an Active-X control in the page. This works on all other

    versions of IE, but on IE11, typeof window.ActiveXObject returns

    undefined. Any ideas if how to test for Active-X support in IE11?

    Also I have a snippet of javascript code that runs fine in IE8 - IE10, but

    doesn't work in IE11.

      if (typeof (window.ActiveXObject) == "undefined")

        {

          ActivexPassed = false;

          logInfo("Active-X NOT supported");

        }

      else

        {

        if (typeof window.external.msActiveXFilteringEnabled != "undefined" &&

    window.external.msActiveXFilteringEnabled() == true)

          {

            ActivexPassed = false;

            logInfo("Active-X NOT supported (Filtered)");

          }

        else

          {

            ActivexPassed = true;

            logInfo("Active-X IS supported");

          }

    Monday, August 26, 2013 1:59 PM

Answers

  • if(typeof window.ActiveXObject=='function')

    function AXFiltering(){
     if(!typeof window.ActiveXObject=='function'){return 'unsupported';}
     if(typeof window.external.msActiveXFilteringEnabled=='unknown'){
     if(window.external.msActiveXFilteringEnabled()){return true;} else {return false;}
     }else{return 'unsupported';}
    }

    Post questions about html, css and scripting to the IE Web development forum..include a link to your website or mashup with your question there.

    thx.


    Rob^_^

    Tuesday, August 27, 2013 4:02 AM

All replies

  • if(typeof window.ActiveXObject=='function')

    function AXFiltering(){
     if(!typeof window.ActiveXObject=='function'){return 'unsupported';}
     if(typeof window.external.msActiveXFilteringEnabled=='unknown'){
     if(window.external.msActiveXFilteringEnabled()){return true;} else {return false;}
     }else{return 'unsupported';}
    }

    Post questions about html, css and scripting to the IE Web development forum..include a link to your website or mashup with your question there.

    thx.


    Rob^_^

    Tuesday, August 27, 2013 4:02 AM
  • Hi, 

    I had same trouble... I've just found a workaround fix which solved my problem : if("ActiveXObject" in window) returns true.

    Seb

    • Proposed as answer by Bryce Godfrey Tuesday, September 24, 2013 11:07 PM
    Tuesday, September 24, 2013 11:13 AM
  • Thanks Seb, the other proposed answer did not work.
    Tuesday, September 24, 2013 11:07 PM