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
|