views:

96

answers:

3

I wonder some jquery features are not displayed (correctly) at Internet Explorer 6 like the ui.slider. Is there a chance not to display the real jquery code of the site if its opened with a "underdeveloped" Browser? Instead of showing the real jquery code, a message with "Get a compatible Browser" or something like that should show up.

I guess I will need the hide option, but how can I determine with the code which browser is not compatible so that the message is only shown for this class of browsers?

A: 

Hi, just use "jQuery.Browser"

JQuery Browser Detection

if (jQuery.browser.msie) {
  alert(parseInt(jQuery.browser.version));
}
ArneRie
+1  A: 

you should never display such a message. gracefully degrade instead.

dusoft
A: 
  1. For filtering to different IE versions use IE's conditional comments feature.

  2. There are slider implementations that do work for back-version IE that could be substituted as needed.

Steve Gilham