Solved

document mode 7

Posted on 2014-01-25
6
362 Views
Last Modified: 2014-01-28
Dear all,
One of our client's web site work perfectly on ie11  if customer browse the web site in document mode 7...
Using html code How can force ie 11 to browse the web site on 7 ?

thanks,
0
Comment
Question by:ethar1
  • 3
  • 2
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39810417
You will need to add this in the head of the document:
<meta http-equiv="x-ua-compatible" content="IE=7">

That should direct the browser to use compatibility mode for ie7.

More detail about how is works can be found on the Microsoft developer site:

http://msdn.microsoft.com/en-us/library/jj676915%28v=vs.85%29.aspx

Cd&
0
 

Author Comment

by:ethar1
ID: 39810708
I already use each one of those:
<metax http-equiv="x-ua-compatible" content="IE=EmulateIE5" >
<metax http-equiv="x-ua-compatible" content="IE=5">
<meta http-equiv="x-ua-compatible" content="IE=7">

<meta http-equiv="x-ua-compatible" content="IE=edge" > 

but nothing effected.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39813115
Then either there is something else wrong with the page (like no valid doctype) or it is an as yet unreported bug in IE11.

What doctype are you using?

BTW, anything that relies on IE7 compatibility needs to be re-written because IE10 was the last to support it with native compatibility mode, and IE 11 may be the last to recognize IE7 ever existed.  At some point obsolete pieces have to be replaced or they will fail.

Cd&
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:ethar1
ID: 39814188
<!DOCTYPE html>
btw, when I open Developer Tools F12 , and change the document mode to 7, it work perfectly.
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39814240
Hi,
IE is very picky if the meta tag is not one of the very first elements in the html head, therefore can you ensure that this meta tag is on top (with nothing else than the head tag before)?
Which web server are you using?
If its IIS then you can also configure IIS to send additional header information, setting the http-equiv directly there:
http://weblogs.asp.net/joelvarty/archive/2009/03/23/force-ie7-compatibility-mode-in-ie8-with-iis-settings.aspx

HTH
Rainer
0
 

Author Comment

by:ethar1
ID: 39815092
work , thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

920 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

14 Experts available now in Live!

Get 1:1 Help Now