Solved

IE Document mode

Posted on 2013-12-16
3
593 Views
Last Modified: 2013-12-17
Hi Experts,
I'm having a weird issue with our webapp.  In IE, when I go to F12 view for emulation - as I switch pages in our webapp, I can see the document mode changing its default value for that page.  One particular page is changing on my browser to IE7 (where JSON is not even defined), so the page is broken for me.  But my colleagues IE version does not do this on the same page... How can I find what is in the same page but causing my IE to change document mode?

Thanks!
Mike
0
Comment
Question by:thready
3 Comments
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 250 total points
ID: 39723528
1) make sure you have the correct doctype
2) go to tools, compatibility view settings and make sure the URL is not in the list
0
 
LVL 16

Accepted Solution

by:
hankknight earned 250 total points
ID: 39723799
Internet Explorer has an undesirable "feature" called "Compatibility Mode" which can cause newer versions of Internet Explorer to act like older versions of Internet Explorer.

Read this:
http://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx

This might help:

### 1 ###
Send X-UA-Compatible: IE=edge as an HTTP header.   If you are using PHP you  can try this:
<?php header('X-UA-Compatible: IE=edge'); ?>

Open in new window

 ### 2 ###
Add this code immediately after your <head> tag:
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 

Open in new window

0
 
LVL 1

Author Closing Comment

by:thready
ID: 39724301
Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now