I’ve had to fix a couple of our sites today due to the javascript error “$.browser is undefined”, If you’re using Google’s CDN to deliver your minified jQuery, you may well be seeing the same thing.
It looks like Google has updated their main 1.0 branch of jQuery to serve version 1.9 of the popular javascript library. Unfortunately some plugins haven’t been updated (or site owners haven’t updated the plugin) to stop using $.browser which is now deprecated.
Fortunately, fixing this is just a case of hardcoding the CDN call to use version 1.8, so in this case change –
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
to
http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js
And that should fix it.
So far I’ve seen problems with jQuery.autocomplete and jCrop plugins, feel free to add more in the comments.
January 21, 2013 at 12:44 pm
Thanks, this saved my life!, I was having problems with jquery ui tabs and cycle plugin!
January 21, 2013 at 12:45 pm
Reblogged this on XtremeCleanTest.
January 21, 2013 at 5:49 pm
HTMLBox.js
January 30, 2013 at 11:06 am
@Jamie Something must still be calling that (deprecated) function, do you have a publicly accessible URL that I can take a look at?
January 30, 2013 at 1:05 pm
Glad you got it working.. but weird you had to hack it. As long as you’re sure the code is targeting the 1.8 version of jQuery, you *should* be fine.
April 11, 2013 at 10:18 am
Hey!
You helped me a lot!
Had some troubles with jQuery.jCrop plugin…