Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a site which works fine when accessed from a remote web server. It runs (on IE8, which is what my organisation uses) with:

  • Browser mode: Internet Explorer 8
  • Document mode: Internet Explorer 8 Standards

However, when I open the same site from localhost, using the same browser, I get:

  • Browser mode: Internet Explorer 8 Compatibility View
  • Document mode: Internet Explorer 7 Standards

With the tag <meta http-equiv="X-UA-Compatible" content="IE=8" />, I can fix the document mode to IE8. However I can't lose the Compatibility View - and this is causing some aspects of my site to break (specifically, some AJAX functionality).

Do you have any idea (a) why IE8 is rendering my site in Compatibility View from localhost when it renders normally on a remote server, and (b) how to prevent/circumvent this problem?

Thank you.

share|improve this question

1 Answer 1

You might have the option set under your IE options to use Compatibility view for local sites: Compatibility view settings

From http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.