IE9 Compatibility - set the head meta tags

asked 2011-06-28 05:30:51 +0800

lupici gravatar image lupici
9 1

Hi all,

I use zk 3.6 and I have several problems with IE9. The pages are rendered bad, or not at all.... I try to use the various meta tag to emulate IE7, IE8 and so on... but nothing worked... I see the html of the rendered page and the meta directive is at the end of the head tag.. Maybe this is the problem... but I can't figure out how to move it....

This is the starting code of my .zul page

<?xml version="1.0" encoding="UTF-8"?>
<?taglib uri="/WEB-INF/tld/web/core.dsp.tld" prefix="c"?>
<?page title="${title}" ?>
<?meta http-equiv="X-UA-Compatible" content="IE=7,8,9" ?>
<window id="registration" contentStyle="padding:10px" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk" class="login-header">
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;

and this is the starting of the rendered html page....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<title>PAGE TITLE</title>

<link rel="stylesheet" type="text/css" href="/games/zkau/web/zul/css/normie.css.dsp"/>
<link rel="stylesheet" type="text/css" href="/games/zkau/web/zkex/zul/css/zkexie.css.dsp"/>

<script type="text/javascript" src="/games/zkau/web/js/zk/zk.js.dsp" charset="UTF-8">
<script type="text/javascript">


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


I tried, obviously, as content, "IE=EmulateIE7", "IE=7", "IE=100"... and so on....

If I push the icon, in IE9, to switch to compatibility mode, the page works (not perfectly, but works, and for me it's enough, for now), but I need this operation to be automatical set......

I read somewhere that this meta directive has to be put at the beginning of the head tah... but how??? there is another way, maybe to set tomcat to use for all the page this meta directive?

I don't want, for now, to switch to zk 5.x.... to many page to modify in very short time.....

Thanks a Lot


delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-06-28 09:41:24 +0800

lupici gravatar image lupici
9 1

add another experiment I've just made. I create a .jsp page in which I put as first meta tag the "IE=EmulateIE7" and after I use <jsp:include page="page.zul"></jsp:include> to load into the zul page that doesn't work.

The result is that now the page is loaded, but all the controls in the page doesn't work (an edit box that has a constraint on exit to verify that a null value is not to be accept, a checkbox that, one checked, enable a button, ecc)... So the page is shown, but not usable.... If I click the icon of compatibility mode, all the control started to work....

So I think the meta tag is something in the middle between the IE9 standard and the IE9 in compatibility mode.....

IE9: Page not loaded at all
IE9 with meta tag "IE=EmulateIE7": page loaded but control not working
IE9 with compatibility mode icon pressed: page loaded and control working

There will be a solution?????

link publish delete flag offensive edit

answered 2011-06-28 09:54:04 +0800

samchuang gravatar image samchuang
4084 4


ZK 3.6 doesn't support IE9, you could use ZK 5 for IE 9 support

link publish delete flag offensive edit

answered 2011-06-29 02:54:49 +0800

lupici gravatar image lupici
9 1

I know ZK5 supports IE9.... but I have toooooo many pages to modify (and it's not an easy modification)....

I'd like only to set compatibility mode on IE9 by code.....

link publish delete flag offensive edit

answered 2011-10-25 14:59:37 +0800

andreasboos gravatar image andreasboos
103 2

We had similar problems with its ERP for we have done in VB which recently began to be migrated to ZK. In certain situations we open ZK pages through pages VB. Our VB application only runs in compatibility mode with IE 7.

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

This tag tells solve the problem. It forces open the page in IE> = 8 to run in compatibility mode.

I found the reference on this link:

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2011-06-28 05:30:51 +0800

Seen: 2,277 times

Last updated: Oct 25 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More