gjjangid / jquery-star-rating-plugin

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

Refreshing page, star value doesn't work #134

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Where can we see the problem?
> URL: my web in development
ps: http://jsfiddle.net/ is the best way for us to debug your issue

What steps will reproduce the problem?
> 1.

 $(document).ready ...
{
 $('.star').rating('select', 4);
}

> 2.
I refresh my firefox (pressing F5, pressing control + F5 it works fine) and the 
stars are not refreshed, it shows empty.

What is the expected output? What do you see instead?
> I expected the same star value. There is a bug in:  $('.star').rating

What version of the plugin/jQuery are you using?
> PLUGIN VERSION: jQuery Star Rating Plugin v4.11 - 2013-03-14
> JQUERY VERSION: 1.9.1
> BROWSER(S) VERSION(S): Firefox 21.0

Feel free to provide any additional information below.

Original issue reported on code.google.com by joseafer...@gmail.com on 17 May 2013 at 12:13

GoogleCodeExporter commented 8 years ago
Please provide a URL so I can help you debug this.

Original comment by diego.a...@gmail.com on 17 May 2013 at 1:46

GoogleCodeExporter commented 8 years ago
Hello,

http://test2.propentum.com/

In file Principal.js
Instruction:  $('.star').rating('select', 2);

It seems it only fails with Firefox, I have 21.0 version.

Thanks.

Original comment by joseafer...@gmail.com on 17 May 2013 at 6:03

GoogleCodeExporter commented 8 years ago
Having looked at your page, this pretty much seems to be your setup:
http://jsfiddle.net/UVDCf/1/

It works, I can't find a problem with the plugin. But it sounds like you have a 
problem with the order of the execution of your code. CTRL+F5 tells Firefox to 
ignore its cache and fetch all resources again from the server. By the sounds 
of it, when you press F5, Firefox is firing your scripts in a different order.

You might wanna try something like this:
http://jsfiddle.net/UVDCf/3/

Original comment by diego.a...@gmail.com on 17 May 2013 at 7:41