IE7 ActiveX Quick Fix

Written on May 25, 2006 – 12:06 pm | by John |

Michael Moore (no, not the documentary director!) brought this little IE 7 quick fix to my attention.

Just below the last in your HTML page, insert the following Javascript:

Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:


theObjects = document.getElementsByTagName(”object”);
for (var i = 0; i < theObjects.length; i++)
{
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

Save this file as fixit.js

Pretty cool stuff.

For more control and some additional features there is SWFObject:

SWFObject is a JavaScript file used to embed Macromedia Flash content. The script can detect the Flash plug-in in all major web browsers. Its search engine friendly & degrades gracefully.

Check out SWFObject.

J.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • description
  • ThisNext
  • MisterWong
  • Wists
  • Facebook
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Related Posts

Put your related posts code here

 
close Reblog this comment
blog comments powered by Disqus
Find entries :

Want to subscribe?

  Subscribe in a reader or,
Subscribe via email:

About me

I'm a senior developer at RealEyes Media, Adobe Certified Instructor and Adobe Certified Professional. Here you'll get my ideas and experience Flex, Flash, ColdFusion and related technologies as well as some generally off the wall stuff.