This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Jquery rating system and symfony

Forum to discuss ExtJS and other JS plugins

Jquery rating system and symfony

by tannos » Fri May 29, 2009 1:21 pm

Hi,
I tried to use this star rating plugin (jquery) : http://orkans-tmp.22web.net/star_rating/index.html

I read article on Ajax Integration (symfony cookbook) bt I don't successed to use the plugin.
I trie to figure out how integrate this code in my page:
Code: Select all
    <script type="text/javascript">
        $(function(){
            $("#ratings").children().not("select").hide();
            $("#ratings").stars({
                inputType: "select",
                captionEl: $("<span/>").insertAfter("#ratings"),
                callback: function(ui, type, value)
                {
                    $.post("demo2.php", {rate: value}, function(data)
                    {
                        $("#ajax_response").html(data);
                    });
                }

            });
        });
    </script>


Can anyone can tell me how I can use/modify this code to integrate it in my showSuccess.

Thanks
Regards

PS: excuse my english
tannos
Member
 
Posts: 47
Joined: Mon May 11, 2009 2:21 pm

Re: Jquery rating system and symfony

by NeoX » Tue Jun 29, 2010 5:39 pm

Hi tannos,

Have you integrated Jquery rating system in you symfony project?
I nedd to integrate it but I dont know how.

Thanks.
NeoX
Member
 
Posts: 72
Joined: Thu Mar 25, 2010 2:42 pm
Location: Spain

Re: Jquery rating system and symfony

by tannos » Thu Jul 08, 2010 11:19 pm

Hi,

I used another rating system for my project.

Maybe you can use this pluginhttp://www.symfony-project.org/plugins/sfWidgetFormJqueryRat ingPlugin

Regards
tannos
Member
 
Posts: 47
Joined: Mon May 11, 2009 2:21 pm

Re: Jquery rating system and symfony

by NeoX » Fri Jul 09, 2010 10:22 am

Hi tannos,
I've installed sfWidgetFormJqueryRatingPlugin but I can't see the stars. I've followed readme instructions.
I get the following error in firebug:
Code: Select all
$("#container_votacion_votacion").raty is not a function

What can I do?

Thanks.
NeoX
Member
 
Posts: 72
Joined: Thu Mar 25, 2010 2:42 pm
Location: Spain