Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
if($.browser.msie && $.browser.version < 7){
    $.support.selectOpacity = false;
  }else{
    $.support.selectOpacity = true;
  }


Hi friend my jquery.uniform.js file is not running today.
error shows msie is not defind.

Please help me.

[Edit]Code block added[/Edit]
Posted
Updated 20-Jan-13 7:14am
v3

1. $.browser is deprecated. Did you upgrade query recently?

$.browser: Ever since jQuery 1.4, we’ve been evangelizing that browser detection via the user agent string is a bad idea. Yet we’ve been an enabler of bad practice by continuing to offer $.browser. As of jQuery 1.9 we’ll remove it entirely and you’ll need to use the 1.9 compat plugin. If your code isn’t weaned off browser detection yet, check out Modernizr for a very thorough set of feature detections you can use instead. And of course, you’re welcome to read the tea leaves in the navigator.userAgent string directly, there’s nothing stopping you but your conscience.

2. From query devs:

This is expected behaviour. We *expect* IE to return a value of undefined against a UA test for Opera through $.browser.

3. Modernizr is a good library for feature detection. Nova days relaying on browser name is a bad habit.
 
Share this answer
 
You better use modernizr[^] for opacity support check.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900