admin管理员组

文章数量:1415420

I have a website that works in full patibility on All browsers including IE 7 to 9

I was shocked when i tried it on IE-10, Too many bugs, and because I have no time to fix this for IE-10 and i am also using third party controls "Telerik", I decided to try a simple solution by turning the Document and the browser mode back to ie9.

In Developer Tools for IE-10, If i set Manually The Document Mode to IE9 Standards and the Browser Mode to IE9, All the bugs will fly away, I have found a way that forcing the IE-10 to use the Document Mode :

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

But what about the Browser Mode? is there any way to set its value before rendering?


Solution : The way i used in this question was correct, however the solution for me was updating the windows in the hosting server, There was many updates, suspected one is: Update for Internet Explorer 8 Compatibility View List for Windows Server 2008 R2 x64 Edition (KB2598845)

I have a website that works in full patibility on All browsers including IE 7 to 9

I was shocked when i tried it on IE-10, Too many bugs, and because I have no time to fix this for IE-10 and i am also using third party controls "Telerik", I decided to try a simple solution by turning the Document and the browser mode back to ie9.

In Developer Tools for IE-10, If i set Manually The Document Mode to IE9 Standards and the Browser Mode to IE9, All the bugs will fly away, I have found a way that forcing the IE-10 to use the Document Mode :

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

But what about the Browser Mode? is there any way to set its value before rendering?


Solution : The way i used in this question was correct, however the solution for me was updating the windows in the hosting server, There was many updates, suspected one is: Update for Internet Explorer 8 Compatibility View List for Windows Server 2008 R2 x64 Edition (KB2598845)

Share Improve this question edited Mar 27, 2013 at 11:50 Alaa Alweish asked Mar 26, 2013 at 12:20 Alaa AlweishAlaa Alweish 9,10617 gold badges61 silver badges85 bronze badges 6
  • 1 By the way, there are far less bugs in IE10 - if things only work in IE9 mode, you are doing something wrong. Try serving your 'normal' version (i.e. what you serve to Chrome/Firefox) to IE10 – things should work. – Rich Bradshaw Commented Mar 26, 2013 at 12:22
  • I suggest to try going with <meta http-equiv="X-UA-Compatible" content="IE=100">, which always forces the mode of the newest IE version, i.e. best support of new technologies. – Cedric Reichenbach Commented Mar 26, 2013 at 12:25
  • 2 @CedricReichenbach - the correct syntax for "use the best IE available" is content="IE=edge" – Spudley Commented Mar 26, 2013 at 12:33
  • 1 @CedricReichenbach, I don't want the newest, this website is running perfectly since one year ago, on all IE's but not the latest IE10 and IE10 for windows 8. – Alaa Alweish Commented Mar 26, 2013 at 12:35
  • @RichBradshaw, It's really works like a charm on all browsers but not the IE-10 especially the Telerik controls it's totally in different style. – Alaa Alweish Commented Mar 26, 2013 at 12:39
 |  Show 1 more ment

1 Answer 1

Reset to default 0

You've already got the document mode sorted. Does that not solve the problem? It usually does the trick.

The browser mode shouldn't need to e into play, as it doesn't affect the rendering at all; it just changes the UA string, so it shouldn't have any impact on the page layout.... unless there is something in the code that tries to do a browser-specific hack by looking at the UA string.

If you have got something in your code that does that, then that's where the problem is and you should probably fix it. (using the UA string to affect page layout is generally frowned on as a bad practice anyway; there are usually better ways to do it)

If it's Telerik itself that's doing it, then I would imagine they'd have already been forced to find a fix for it (IE10 has been out for a while and they'd have had other users plaining), so you may find that updating to the latest version will solve the problem.

本文标签: javascriptFixing the Browser Mode in IE ProgrammaticallyStack Overflow