tcallsen / jquery-star-rating-plugin

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

Firefox won't register selected stars in ASP.NET website #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an ASP.NET website
2. Implement star rating plugin
3. Try to use it in Firefox 19.0 (didn't try earlier ones)

What is the expected output? What do you see instead?

The expected output should be that I should register selected stars in 
codebehind. Instead, the values aren't registered (even though visually the 
script seems to function)

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 4.0
JQUERY VERSION: 1.9

On what browser(s) or operating system?
BROWSER(S): Firefox/Windows

Please provide a link to where the problem can be observed:
URL: www.najmajstor.com (though it's not in english, and it shows only when you 
register)

Feel free to provide any additional information below.

My implementation:

<script 
src='http://jquery-star-rating-plugin.googlecode.com/svn/trunk/jquery.js'
        type="text/javascript"></script>
    <script src='http://jquery-star-rating-plugin.googlecode.com/svn/trunk/jquery.MetaData.js'
        type="text/javascript" language="javascript"></script>
    <script src='http://jquery-star-rating-plugin.googlecode.com/svn/trunk/jquery.rating.js'
        type="text/javascript" language="javascript"></script>
    <link href='http://jquery-star-rating-plugin.googlecode.com/svn/trunk/jquery.rating.css'
        type="text/css" rel="stylesheet" />
    <script src='http://jquery-fyneworks.googlecode.com/svn/trunk/documentation/documentation.js'
        type="text/javascript"></script>
    &nbsp;<div style="float: left; margin-left: 100px;">
        <asp:Label ID="Label11" runat="server" Text="Kvaliteta: " Style="float: left;" Width="75px"></asp:Label>
        <script type="text/javascript">
            $(function () {
                $('.hover-star1').rating({
                    focus: function (value, link) {
                        var tip = $('#hoverstarresult');
                        tip[0].data = tip[0].data || tip.html();
                        tip.html(link.title || 'value: ' + value);
                    },
                    click: function (value, link) {
                        var tip = $('#hoverstarresult');
                        $('#hoverstarresult').html(tip[0].data || '');
                    }
                });
            });
        </script>
        <input class="hover-star1" runat="server" type="radio" name="test-3B-rating-1" value="1"
            title="Očajno" id="i11" />
        <input class="hover-star1" runat="server" type="radio" name="test-3B-rating-1" value="2"
            title="Loše" id="i12" />
        <input class="hover-star1" runat="server" type="radio" name="test-3B-rating-1" value="3"
            title="Osrednje" id="i13" />
        <input class="hover-star1" runat="server" type="radio" name="test-3B-rating-1" value="4"
            title="Dobro" id="i14" />
        <input class="hover-star1" runat="server" type="radio" name="test-3B-rating-1" value="5"
            title="Odlično" id="i15" />
        <br />

Original issue reported on code.google.com by rastko.m...@gmail.com on 22 Feb 2013 at 11:46

GoogleCodeExporter commented 9 years ago
As an update, the star rating isn't working in Firefox and IE9 unless the 
defaults are checked, but it is working in Chrome regardless of whether 
defaults are selected or not.

It doesn't have anything to do with ASP.NET, because the same problem happens 
on your very demo page here: http://www.fyneworks.com/jquery/star-rating/ . So 
Test 1 and Test 3B are not displaying anything even when they should be.

Original comment by rastko.m...@gmail.com on 23 Feb 2013 at 12:00

GoogleCodeExporter commented 9 years ago
Also, it worked fine until you upgraded to this version on 2/18.

Original comment by rastko.m...@gmail.com on 23 Feb 2013 at 12:03

GoogleCodeExporter commented 9 years ago
Thanks for the detailed report.
Issue fixed in v4.01.
I can't see your code though because http://www.najmajstor.com seems to be down.
Please verify it works and let us know.

Download: http://www.fyneworks.com/jquery/star-rating/
Test suite: http://www.fyneworks.com/jquery/star-rating/test/

Original comment by diego.a...@gmail.com on 23 Feb 2013 at 4:50