Saturday, December 4, 2010

IE8 compatibility Issue

If you have developed a website that is compatible with IE-7 or IE-6. And its designing is not good enough with IE-8 than you can force IE-8 to use IE-7 or IE-6 rendering mode until you fix the issue with IE-8.

This can be done with the help of meta tag :

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

you can change here content attribute's value according to your requirement(IE-8,IE-7,IE-6,IE-5).

On the other hand if you have developed a windows application and used web browser control. Web Browser control by default gives IE-6 views for XP. But you want, it should use IE-8 rendering mode than also you can use above meta tag with the xslt you are using.

If don't want to change xslt than you can do the setting in registry also like:-

For IE-8 rendering mode
[(HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE)\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"ApplicationName.exe" = dword 8000 (Hex: 0x1F40)

and For IE-7 you can use "ApplicationName.exe" = dword 7000 (Hex: 0x1B58)

Or you can save following code as IE8.reg file(Simple create a notepad file and paste following code in that). And when you will double click on that file it will do the setting automatically. Following code is for IE-8 only.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]

No comments: