I think this works...
public native static String getUserAgent() /*-{
return $wnd.navigator.userAgent.toLowerCase();
}-*/;
On Nov 13, 1:17 pm, rjcarr <[EMAIL PROTECTED]> wrote:
> Is there any way to get the browser type or family from within the
> code? I'm using LoadListeners and they don't behave very well in IE
> and would like to do a quick check and react differently when in IE.
>
> I know I can use the module xml to replace classes when specific
> browser versions are used, but is there any way to tell within the
> code?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---