views:

355

answers:

3

Hi,

I'm creating an application using GWT 2.0.1; it complies 6 computations and runs well in all browsers except IE8, 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 ?

A: 

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/

Hi, thanks for the reply but, we already tried the validator shows 0 errors and some warnings and still no luck.
shyam.m
A: 

Hi, try to use

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

instead of

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

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"/>
Kees de Kooter