Tip: Fix stupid IE8 errors: force compatibility mode

Internet Explorer is Stupid

IE has never liked Javascript very much, and IE8 will be rolled out soon. Many nice Javascript elements that I commonly use don't work yet in IE8, such as Shadowbox and BeautyTips.

This blog/site runs on Drupal and I use modules to handle my Shadowbox and BeautyTips needs, however these haven't been updated to the latest and greatest versions of their stand alone counterparts so they don't yet work in IE8.

THE FIX

Stick the following code segment in your HTML file, or in the case of Drupal in your theme's page.tpl.php, in the <head> tags before any calls to Javascript files.

<meta http-equiv="X-UA-Compatible" content="IE=7" />

I haven't done it to this site, b/c I frankly don't care if IE8 doesn't work exactly right, but it does have to have it work on my company's website so I have put it into use there.

Anonymous's picture

I have just had the same

I have just had the same issue, stupid bloody browser, and it has the nerve to suggest it is the sites fault by offering a button to make it work.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <b> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <br> <blockquote> <align> <p> <h1> <h2> <h3> <h4> <object> <param> <embed>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Twitter-style @usersnames are linked to their Twitter account pages.
I love Drupal! drupal-love-right.png