Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Browser Mode=IE8 and document mode=IE8 Standards

I have a internal website hosted on IIS. I added the following meta code and also add http-header that the page should in IE8 Browser mode and document mode.

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

We tested it on Visual Studio and and it works very well.

However, after we publish the code to another IIS server, one developer reported that the page render in "IE8 Comatiblity" Browser Mode which causes some JavaScript to fail.

There are more then 4 people working on the same windows server 2003 (RDP sessions). We use the same version of IE (same IE actually). Everyone get "IE8" Browser Mode but one person gets "IE8 Compatibility" Browser Mode.

What else can make a specific user's IE load the page in a mode other than IE8 mode?

PS. We checked the compatibility list in the IE; it is empty.

like image 207
Dennis C Avatar asked Apr 08 '10 02:04

Dennis C


People also ask

How do I change document mode to IE9 standards?

To change the Document Mode, press F12, click Document Mode: , and then select Internet Explorer 9 Standards."

How do I permanently change document mode in IE11?

From the Settings dropdown, select F12 Developer Tools. Select the Emulation tab. Select Edge (Default) from the Document mode drop down. Select Default from the User agent string drop down.

What is document mode in Internet Explorer?

Document Mode is what the browser uses to render the page: IE9, IE8, IE7 or Quirks. Browser Mode sets how the browser identifies itself to the web server and to JavaScript.


2 Answers

We found it was caused by the checkbox in "Compatibility view settings" - "Display intranet sites in Compatibility View".

It works well after uncheck the box.

PS. Is it true that "localhost" is excluded from intranet sites?

like image 93
Dennis C Avatar answered Oct 06 '22 15:10

Dennis C


its still opening in "Compat View " Mode but in its works, no differences in UI aftert adding

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

script

like image 37
suhas Avatar answered Oct 06 '22 17:10

suhas