Saturday, December 21, 2013

Re: "Object does not support property or method attachEvent" on IE 7,8,9,10

The problem was reported by a client using IE8. We try to reproduce it using IE8 User Agent String in IE 11 development tool. In the JS console we get "Object doesn't support property or method 'attachEvent'.

By using the IE 8 user agent string you are forcing GWT to choose the IE 8 permutation which uses attachEvent(). But at the same time you have told your IE 11 to work in document mode "edge" which means it uses the newest features and HTML APIs. In "edge" mode IE 11 does not support attachEvent(). So you should try to set the document mode to IE 8 too. If thats not possible or you are still seeing the issue in IE 11 then you have to use a real IE 8 (or maybe try IE 9/10 and set them to document mode of IE 8).

If the client reports the same issue using IE 8 then your client has a misconfigured IE 8 (similar to how you misconfigured your IE 11). You can search this group for attachEvent problems and if I remember correctly most of the time an old Chrome Frame plugin was installed in IE 8 which has caused GWT to still use the IE 8 permutation although the app will be rendered by the chrome engine/plugin which does not support attachEvent().

-- J.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment