Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: JQueryUI
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 15-Jan-13 20:39pm
Edited 20-Jan-13 7:14am
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You better use modernizr[^] for opacity support check.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 6,696
1 Sergey Alexandrovich Kryukov 6,675
2 CPallini 5,315
3 George Jonsson 3,584
4 Gihan Liyanage 2,650


Advertise | Privacy | Mobile
Web03 | 2.8.140921.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100