Welcome Guest, Not a member yet? Register   Sign In
how to associate star rating system with a link
#1

[eluser]oursteps[/eluser]
I am trying to integrate star rating plugin(http://www.fyneworks.com/jquery/star-rating/) with my code.

for example:
Code:
$(function() {
       $('.auto-submit-star').rating({
            required: true,
            callback: function(value, link) {

            $.ajax({
                     type: "post",
                     url: site_url + "user/view/star",
                     dataType: "json",
                     data: "&video;=" + $('#video_url').val() + "&rate;_val=" + value,

              success: function(e) {
                   $.jGrowl(e.code + "<br>" + e.msg);
               }
         });
     }
});

But I don't understand what the parameter "link" is?

how can I associate the script with an item to be rated? (i.e. the system need to know which item is being rated...)

anyone can help me?

Thanks.


Messages In This Thread
how to associate star rating system with a link - by El Forum - 01-30-2012, 07:36 AM
how to associate star rating system with a link - by El Forum - 01-30-2012, 11:58 PM
how to associate star rating system with a link - by El Forum - 01-31-2012, 12:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB