#2131 new

Warning in IE when ActiveX is deactived

Reported by Natasha | March 27th, 2013 @ 11:15 PM

Hi everybody,

I'm really desperate - please, please I need your help:

In case that your Internet Explorer (at least in version 8 + 9) is configured NOT to allow Active-X then the following JavaScript command

will cause a warning
An add-on for this website failed to run. Check the security settings in the Internet options for potential conflicts

In prototype.js that "createElement('object')" command is triggered each time the library is loaded (which is normally: always) because of the following line

var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY = checkDeficiency('object');

or (depending on the prototype version)

var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY = checkElementPrototypeDeficiency('object');

Am I the only one who things that this is very annoying and not a good idea?
What exactly is the reason for this HTMLOBJECTELEMENT_PROTOTYPE_BUGGY hack (it's not commented at all)?
Are there any fixes/suggestions regarding that problem?
What exactly will happen if I just replace the line above by


Thank you very much in advance for your dear help.


Comments and changes to this ticket

  • Natasha

    Natasha March 28th, 2013 @ 11:17 AM

    What about the following solution?

      // PATCH: In case of IE with deactivated ActiveX checkDeficiency('object') will cause a warning.
      // HTMLOBJECTELEMENT_PROTOTYPE_BUGGY shall be true for IE with version less than 9 (indicated by a unknown document.addEventListener function)
      // and it shall be false for all IEs with a version greater or equal 9.
      // For all non-IE browsers we use the checkDeficiency function.
      var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY = (Prototype.Browser.IE ? (typeof document.addEventListener !== 'function') : checkDeficiency('object'));

    Thanks and bye

  • Jason Westbrook

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket