LinuxUK
   Home About us Design services Get in Touch Testimonails Create and account / Log in
Categories
 Ready Made

 Security checks

 Support Club

 Tips and Tricks

 How to guides osC

 My Contributions

 osCommerce versions

 Base64 Decoder

 Link to us!

Make I.E 9 Emulate I.E. 7
Product stats Product Stats
Products name Product Name: Make I.E 9 Emulate I.E. 7
Products info Product description

Your site is not working properly in I.E 9?
If you use I Frames then this is especially true, IE 9 will take all content and treat it as the main page says, so if your main page is i.e9 compatible it will treat the rest of the page as such, this causes problems with I Frames and other content that needs to be run in quirks mode for instance.

The new HTML5 is designed to take advantage of the newer internet technologies, not all sites will run properly with it though.

You might find that you are facing issues with sessions, errors, formatting of page in I.E when the page shows find in Fire Fox / Chrome etc.. (a big up to the Open source movement there, if they can get this right why can't Microsoft?)

A solution to this is easy, use the Compatibility mode in the URL address bar to rectify, but your customers are not going to want to do this so a method of doing it for them needs to be found.

All you need to do is to add this to your <head></head> tags

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

--or--

if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=EmulateIE7");}
This must go in side the opening PHP tags. 

Thats is it, for 2.3.1 osCommerce users you only need add this the once in your file it will force IE9 to show as IE7.

There are a few links here to help you choose and also read up on it.

http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx (great read on the !doctype and how its made.

http://en.wikipedia.org/wiki/Quirks_mode

 

Reviews

Make I.E 9 Emulate I.E. 7 - TITLE_DEL_ICIO_US Make I.E 9 Emulate I.E. 7 - TITLE_DIGG Make I.E 9 Emulate I.E. 7 - TITLE_YAHOO_MYWEB Make I.E 9 Emulate I.E. 7 - TITLE_SPURL Make I.E 9 Emulate I.E. 7 - TITLE_FURL Make I.E 9 Emulate I.E. 7 - TITLE_ASK Make I.E 9 Emulate I.E. 7 - TITLE_SQIDOO Make I.E 9 Emulate I.E. 7 - TITLE_SIMPY Make I.E 9 Emulate I.E. 7 - TITLE_REDDIT Make I.E 9 Emulate I.E. 7 - TITLE_MA_GNOLIA Make I.E 9 Emulate I.E. 7 - TITLE_FACEBOOK_BOOKMARK Make I.E 9 Emulate I.E. 7 - TITLE_GOOGLE_BOOKMARK