Friday, December 14, 2012

Undefined attachEvent method in IE 8 using the GWT

We have developed a fairly complex business application using the Google Web Toolkit for the front-end rendering.

Our application is working correctly on all modern browsers (Chrome, Firefox, Safari and IE9). In order to use standards mode we have put

<!DOCTYPE html>  

in the GWT bootstrap.

The problems arise when trying to use earlier IE versions and the application stops loading at the initial splash screen. After investigating, it seems that the GWT deferred binding correctly (12) callsattachEvent for IE < 9 and addEventListener for IE 9. However, IE 8 throws a TypeErrorexception of type undefined_method for the attachEvent call. Note that this happens whenever GWT calls attachEvent and not just for a specific event. We can confirm because when we override the deferred binding for a specific class the problem appears at the next attachEvent call.

Trying to override everything seems like a way to overcome the problem but it isn't optimal, especially keeping in mind that IE < 9 is supposed to have the attachEvent method according to the specification.

Does anyone know something about getting to the root of this problem?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HZH6lJQYxh4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate