Sunday, March 10, 2019

Re: IE11 Compatibility Mode not supported. How to handle it?

As it was an uncaught exception, I was able to catch it in a global handler.  Not a great solution, but it works.

<script type="text/javascript">
  window
.onerror = function myErrorHandler(errorMsg, url, lineNumber) {
   
if (navigator.appVersion.indexOf("MSIE 7.") != -1) {
      alert
("Sorry, IE7 is not supported.");
   
} else {
      alert
("An unexpected error occurred: " + errorMsg);
   
}
   
return false;
 
}
</script>


Any better ideas will be much appreciated.  :-)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment