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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.