wojtor / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

jQuery.browser deprecated: jQuery 1.9 and IE issue #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use jQuery 1.9 and IE

What is the expected output? What do you see instead?
Star Ratings don't work - JavaScript error

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 3.14 2012-01-26
JQUERY VERSION: 1.9

On what browser(s) or operating system?
BROWSER(S): IE 8

Feel free to provide any additional information below.

jQuery.browser is deprecated in jQuery 1.9

change line 17 
if ($.browser.msie) try { document.execCommand("BackgroundImageCache", false, 
true)} catch(e) { };

to use the new jQuery.support.opacity
if ($.support.opacity) try { document.execCommand("BackgroundImageCache", 
false, true)} catch(e) { };

Original issue reported on code.google.com by bcavil...@gmail.com on 31 Jan 2013 at 4:09

GoogleCodeExporter commented 9 years ago
Better still, I'll change it to this so the plugin can support all releases of 
jQuery (1.3+, with 1.9 included!)

if (($.browser && $.browser.msie) || $.support.opacity) try { 
document.execCommand("BackgroundImageCache", false, true)} catch(e) { };

Original comment by diego.a...@gmail.com on 18 Feb 2013 at 1:27

GoogleCodeExporter commented 9 years ago
see v.4
http://www.fyneworks.com/jquery/star-rating/

Original comment by diego.a...@gmail.com on 18 Feb 2013 at 2:01