Internet Explorer: IE ActiveX Update Workaround

Many of you will now be familiar with the update made to internet explorer, whereby you need to ‘click to activate’ any activex controls on a page.

To get around this, I have created a script that you can include in your page (via an external JS file) that basically rewrites all object tags on the page. As the creation of object elements has been done by an external file, IE will allow interaction without activation.

All you need to do is add the script reference just before the end of your body tag.

// test.html


http://main_flash.swf

// ieactivexfix.js

if (document.all && document.getElementsByTagName) for (var i=0, els=document.getElementsByTagName("object"); i<els.length; els[i].outerHTML = els[i++].outerHTML);
Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s