You could also use that strategie that is only viable with Internet Explorer.
http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx <http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx>Cheers, On Fri, Jul 23, 2010 at 4:07 AM, Sven <[email protected]> wrote: > Hi Magnus, > > I do it like this: > > > public static native String getUserAgent() /*-{ > return navigator.userAgent.toLowerCase(); > }-*/; > > > public void onModuleLoad() { > .... > if (MyMainClass.getUserAgent().contains("msie 6.0")) { > HTML message = new HTML("Please notice: as you are > using an old > version of your browser, some functionalities of this site may be > limited."); > message.setStylePrimaryName("info"); > RootPanel.get("info").add( message ); > } > .... > } > > The warning is displayed on top of the page. You may want to have a > look at www.dotvoting.org where I've implemented it. I noticed that > not only many transparencies of my icons are currently not rendered > well, but also some layouting is wrong. However, as the main functions > should work, I thought adding a message for IE 6 and focusing on IE 7, > 8, FF, Chrome, Safari, ... is more appropriate than making it perfect > for IE 6. > > Hope this helps, > Sven > > On 23 Jul., 04:21, Magnus <[email protected]> wrote: > > Hi Brett, > > > > ok, but BTW: How can one do this, i. e. determine the browser version > > with GWT? > > > > Magnus > > > > On Jul 22, 8:03 pm, Brett Thomas <[email protected]> wrote: > > > > > > > > > I think it looks classy to display a note for IE6 users that says > something > > > along the lines of "unfortunately our website no longer supports IE6, > click > > > here to learn how to upgrade" > > > > > I think plenty of people have no idea what browser version they are > using. > > > They may know the difference between IE and Firefox, but not what > version > > > number it is. If a site doesn't work, they'll just say "must be because > my > > > computer is old" and forget about it. So, tell them what they can do to > fix > > > it... > > > > > On Thu, Jul 22, 2010 at 2:00 PM, charlie <[email protected]> > wrote: > > > > Agreed. It's been the bane of web developers existence for far too > long. > > > > > > On Thu, Jul 22, 2010 at 12:44 PM, Christian Goudreau < > > > > [email protected]> wrote: > > > > > >> Let's drop IE6 and IE7 support, I think it's time anyway for that. > > > > > >> On Thu, Jul 22, 2010 at 1:42 PM, Isaac Truett <[email protected]> > wrote: > > > > > >>> GWT doesn't promise to make your application look the same on all > > > >>> browsers. It does try its very best to make sure that the JS it > produces > > > >>> functions the same across browsers, and doesn't leave any nasty > side > > > >>> effects, leak memory, or anything like that. > > > > > >>> There may be some cases where GWT will leverage CSS "tricks" on > each > > > >>> browser to achieve a result (although I can't think of any such > cases off > > > >>> the top of my head), but that doesn't mean that GWT will take steps > to > > > >>> ensure that all of your CSS is magically transformed into something > that > > > >>> works on any browser. For one thing, that's out of scope, and for > another it > > > >>> isn't possible. Some things in CSS just aren't supported, > especially in > > > >>> older browsers. > > > > > >>> On Thu, Jul 22, 2010 at 1:35 PM, Magnus < > [email protected]>wrote: > > > > > >>>> Hi, > > > > > >>>> sorry for repeating: > > > > > >>>> I thought that the promise of GWT was that one never ever has to > deal > > > >>>> with such problems anymore? > > > > > >>>> Why are we discussing about wether to spent time in supporting IE6 > > > >>>> while the GWT compiler should do this? > > > > > >>>> Magnus > > > > > >>>> -- > > > >>>> 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs > [email protected]> > > > >>>> . > > > >>>> For more options, visit this group at > > > >>>>http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > >>> -- > > > >>> 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs > [email protected]> > > > >>> . > > > >>> For more options, visit this group at > > > >>>http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > >> -- > > > >> Christian Goudreau > > > > > >> -- > > > >> 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs > [email protected]> > > > >> . > > > >> For more options, visit this group at > > > >>http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > -- > > > > <charlie/> > > > > > > -- > > > > 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs > [email protected]> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- Christian Goudreau -- 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.
