I have a ajax link, click on which it sends request to action controller. I need to ask user confirmation before it sends ajax request.
echo CHtml::ajaxLink(CHtml::image(Yii::app()->theme->baseUrl."/images/delete4.png"), CHtml::normalizeUrl(array('player/ustgah')),
array('data'=>array('id'=>$data->id), 'type'=>'post', 'success'=>'js:function(data){$("div#"+data).fadeOut(500);}'),
array('class'=>'deletePlayer')
);