0

Possible Duplicate:
How to find out about the User Agent in GWT

I am trying to write browser specific code. Is there a GWT API to find out which browser the client is using?

Community
  • 1
  • 1
  • Check http://stackoverflow.com/questions/2759321/how-to-find-out-about-the-user-agent-in-gwt – Greg Case Oct 28 '10 at 06:05
  • 1
    Wtf?!!? This is exactly (I mean exactly...) the same question gregcase is pointing to?! Some kind of joke? If not, what you are looking for is called deffered binding (http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html) – z00bs Oct 28 '10 at 06:48
  • z00bs is right in both cases - you should check out the other question, but I'd recommend using Deffered Binding (that way the browser specific code gets downloaded only by the browser that *actually* uses it). – Igor Klimer Oct 28 '10 at 07:33