Click here to Skip to main content
11,920,377 members (40,479 online)
Rate this:
Please Sign up or sign in to vote.
See more: jquery-ui
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
Edited 20-Jan-13 8:14am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You better use modernizr[^] for opacity support check.
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.

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

  Print Answers RSS
0 OriginalGriff 415
1 phil.o 170
3 F-ES Sitecore 130
4 RyanDev 120
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,805
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2015
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