I'm building a website with Yii framework 1.1 and i'm implementing a portion wherein i have a like button associated with each post.i want to update the content of the like buttons text everytime i click on it without refreshing the page?please help?
EDIT i did this `id; $foo = $data->likes; echo CHtml::ajaxbutton($foo.' '.'Likes', array('post/like/'.$id), array( 'type'=>'POST', 'success'=>'js:function(data){ $.fn.yiiAjaxButton.update("label");}') );
?>` still doesnt work