jackass
(Xjackassx)
December 1, 2009, 6:25pm
1
Please can someone help me?
I use CStarRating to create a vote system, after the user vote I’d like to disable vote how I can?
why this don’t work properly?
echo CHtml::ajaxSubmitButton("Vota !!!",'site/rating',array('name'=>'vota',success=>'function(){jQuery(this).parents("form").rating("readOnly",true)}'));
Sorry for my english.
jackass
(Xjackassx)
December 1, 2009, 6:50pm
2
I found the problem It’s a rating old version but i don’t find a solution
FlyBot
(Flybots)
December 1, 2009, 9:50pm
3
In success function set new rating div content. For sample - $(div#rating).html(" *** ");
jackass
(Xjackassx)
December 2, 2009, 9:37am
4
Thanks for your reply,
but if I use html method I have to create all code to display star, insted I want obtain the same effect to append the disable attribute to input.
why when I use $(‘input’,‘div#rating’).attr(‘disable’,‘disable’) in input tag I abtain just <input name=“name” value=“value” disable=""/> ? It’s strange or normal?
jackass
(Xjackassx)
December 2, 2009, 2:39pm
5
Solved in another way, I put a ajax request that retrive the correct data thanx.
waveer
(Canoe Zb)
May 29, 2014, 4:08am
6
'afterAjaxUpdate'=>'function(id,data){ $(\'span.starrating input\').rating({readOnly:true}); }',
This is how to use readOnly in afterAjaxUpdate with js.