Click here to Skip to main content
13,299,727 members (63,600 online)
Rate this:
Please Sign up or sign in to vote.
See more:
if($.browser.msie && $.browser.version < 7){
    $.support.selectOpacity = false;
    $.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 21:39pm
Updated 20-Jan-13 8:14am
Rate this: bad
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You better use modernizr[^] for opacity support check.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2017
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