Unable to view GWT 2.0.1 application in IE8

I am creating an application using GWT 2.0.1; it performs 6 calculations and works well in all browsers except IE8, it shows a blank page (but can be viewed in IE8 compatibility mode).
When I add a line to my gwt.xml <set-property name = "user.agent" value = "ie8" /> it compiles only one permutation and the application renders IE8 perfectly. 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 It works correctly in all other browsers.

Is there any other method to ensure that my application runs in all browsers?

+4
source share
5 answers

For those looking for a good solution, you need to insert this line:

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

in your .html file (main page)

This ensures that your page is compatible with upstream IEs ...

+1
source

According to this page, in addition to installing the correct user agent, you need to add the following meta tag to ensure IE8 standards mode:

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

I had a similar problem once, and the problem was that the HTML page that loaded the GWT JavaScript had an unrivaled HTML tag. This did not cause problems in Firefox or Chrome, but IE just displayed a blank page. Try checking your HTML with the HTML Validator. The W3C validator is a canonical service.

http://validator.w3.org/

0
source

instead

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

Try breaking up the generated permutations for IE8 when using <set-property name="user.agent" value="ie8" / > and when using <set-property name="user.agent" value="ie8,gecko,gecko1_8,safari,opera" /> . If they are different from each other, you can get a hint to continue the investigation. Use the violinist or IE tools to monitor and compare the names of * .cache.js files loaded in each case.

0
source

Source: https://habr.com/ru/post/1310734/


All Articles