Click here to Skip to main content
Sign Up to vote bad
good
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


2 solutions

You better use modernizr[^] for opacity support check.
  Permalink  
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
Your Filters
Interested
Ignored
     
0 Christian Graus 577
1 Ron Beyer 341
2 Tadit Dash 243
3 samadhan_kshirsagar 229
4 OriginalGriff 201
0 Sergey Alexandrovich Kryukov 7,061
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,370
4 CPallini 3,034


Advertise | Privacy | Mobile
Web02 | 2.6.130619.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid