I have the following code in a .js page that should open a report in a blank page. This will only work if the site is added to the compatibility list of my IE11.
window.open("RosterList.aspx?strWhere= " + strWhere + "&strSort=" + strSort, '_blank');
My users are on IE9 and when they select the report it just displays a blank screen and a spinning loading icon.
If they go into their IE and add the site to their compatibility list, the report will display.
The question is ... what to I need to write in my application that will force the site into compatibility mode. My MasterPage already contains the statement
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
but this has no effect?
Try this one:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Related
i am using IE 10 and i want to make Document mode of browser set to normal Quirks not IE 5 quirks of my website.I put <meta http-equiv="X-UA-Compatible" content="IE=10;IE=9;IE=edge"> in my master page but no luck,Can anybody share your thoughts
Check if you have included the doctype at the top of your master page.
<!DOCTYPE html>
If the browser supports the above tag(HTML5),It will make the browser to render the page at its highest version.
And the meta tag should be like this:
<meta http-equiv="X-UA-Compatible" content="IE=10,9,edge">
IE9 and below versions will render the page to IE5.5 version in Quirks mode.
MSDN Reference
I have a master page with this tag <meta http-equiv="X-UA-Compatible" content="EmulateIE8"/> . Problem is my screen within master page runs angularjs 1.4, and was developed for chrome. Now I'm told IE must also work. We run IE 11 but master page forces IE8 compatibility. Is there any way to OVERRIDE this (temporarily preferably)? when my screen (via wicket) is loaded?
simply placing <meta http-equiv="X-UA-Compatible" content="EmulateIE11"/> in my HTML has no effect, also tried a java filter applying this, but the master page seems to take precedent.
Any help desperately appreciated!
EDIT -
would this work in my master page:
<meta http-equiv="X-UA-Compatible" content="IE=8, IE=9, IE=10, IE=11" >
?
I have designed a HTML Page and I want that whenever user opens in IE, than by default it should open in IE8 Standards version of IE.
Instead if there is IE9 or IE10 it should take IE8 as default.
You can instruct Internet Explorer 9 and newer to render in IE 8 mode with:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
This is documented on msdn.
See the comments on the question for why you should not do this.
If you are doing this for testing purposes:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
This forces IE 8 to display the page in Internet Explorer Standards mode.
Or
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
This forces IE 8 to use the !DOCTYPE declaration in the page to determine the rendering mode.
More info: http://msdn.microsoft.com/en-us/expression/dd835379.aspx
Here are both the HTTP and the tag ways of setting X-UA-Compatible:
HTTP:
Header set X-UA-Compatible "IE=8"
Meta:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
http://farukat.es/journal/2009/05/245-ie8-and-the-x-ua-compatible-situation
This page exists as a file in an ASP.NET application with target framework 3.5.
I've been experiencing an error on my site (first reported yesterday) that has to do with users having Chrome Frame installed on IE8 or IE9 and them clicking on a link to Open a New Window. The Child page opens up, but when the Child Window is closed (or sometimes before), the Parent Window Crashes. (The screen is completely grey).
Test code which replicates this issue is below, but I have no idea what is occurring or how to resolve it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
</head>
<body>
<button id="open-link">Hi</button>
<script>
var a = document.getElementById("open-link");
a.addEventListener("click", function () {
window.open("http://google.com", "Browser");
}, false);
</script>
</body>
</html>
I am seeing the same issue while on a different platform, so it is not an ASP.net. If you are using Chrome Frame, use window.open to open another window, then close that window, it crashes the remaining tab/window. If your window being opened is outside of the same-domain policy then it crashes the opening tab on opening instead of on close.
I do not have a workaround or solution yet, will post if I find one.
Can use a normal anchor link, and you said it's generated dynamically.
Set dynamic url to a variable either in tags in view or global namespace.
var dynamicUrl = {{myUrl}},
urlTitle = {{myUrl.title}}; // Or whatever construct is generating.
HTML
Hi
My company uses IE8 as the default browser and by default compatibility mode is set for all intranet sites. I'm building an intranet site that works when compatibility mode is turned off. I'm using reset.css and several opensource javascript programs, e.g. datatables.
What I'd like to do is force compatibility mode off for my site. Is there any programmatic way to do it? I have tried setting the meta values
<meta http-equiv="X-UA-Compatible" content="IE=IE8" />
and
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
to no avail.
What's the most frustrating part is that Chrome and Firefox work great as is.
The <meta> tag has to be the first tag inside the <head>, other than <title> and other <meta> elements.
The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the title element and other meta elements.
http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx#DCModes
These must be the FIRST meta tag on your page. Perhaps that's the issue.