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.
评论
发表评论