开发者

Unable to view GWT 2.0.1 application in IE8

I'm creating an application using GWT 2.0.1; it complies 6 computations and runs well in all browsers except I开发者_如何学JAVAE8, it shows a blank page( but can be viewed in IE8 compatibility mode) .

When I add the line in my gwt.xml <set-property name="user.agent" value="ie8" / > it compiles just 1 permutation and the application displays fine in IE8. However if I add the line <set-property name="user.agent" value="ie8,gecko,gecko1_8,safari,opera" /> it compiles all permutations, but the application still cannot be viewed in IE8 but runs properly in all other browsers.

Is there any other method to ensure my application will run in all browsers ?


According to this page besides setting the proper user agent you have to add the following meta tag to enforce IE8 standards mode:

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


For those who are looking for a nice solution, you have to insert this line :

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

in your .html file (the host page)

This will ensure that your page is compatible with ascendant IEs...


I had a similar issue once and the problem was that the HTML page that bootstrapped the GWT JavaScript had an unmatched HTML tag. This didn't cause a problem in Firefox or Chrome, but IE just displayed a blank page. Try verifying your HTML using an HTML Validator. The W3C validator is a the cannonical service.

http://validator.w3.org/


instead of

<set-property name="user.agent" value="ie8,gecko,gecko1_8,safari,opera" / >


Try diffing the generated permutations for IE8 when you use <set-property name="user.agent" value="ie8" / > and when you use <set-property name="user.agent" value="ie8,gecko,gecko1_8,safari,opera" />. If they are different, you might get some clue to take forward your investigation. Use fiddler or IE developer tools to monitor and compare the names of *.cache.js files being loaded in each case.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜