Detecting the browser type

public static native String getUserAgent() /*-{
           return navigator.userAgent.toLowerCase();
}-*/;

and using something like

if(getUserAgent().contains("msie"))
{
           // code for ie
} else {
           // code for other browsers
}

will get you what you want.

Possibly better is to compile only for IE by setting the user.agent
property in your .gwt.xml file and have logic in your startup page
that will display a message for "unsupported" browsers.

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

Reply via email to