How can I determine in my GWT AJAX code which browser the user is
using?
My app is having a timing issue in Firefox so I'd like to display a
message for Firefox users only.
All help is appreciated.
thanks,
Mona
A couple of ideas:
a) copy the script from UserAgent.gwt.xml into a JSNI method and do a
string comparison on the return value.
b) create a class with a method that gets the ua (e.g.
BrowserInfo.getUserAgent()) and create an implementation for each
supported browser which returns the appropriate value. I've already
done this for debugging purposes; the classes are attached.
--
Mat Gessel
http://www.asquare.net