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
