Ajaxlink

Hello,

I have the following ajax link

 echo CHtml::AjaxLink('Delete',array('media/delete/id/'.$key));

The action called from the link return success or unsuccee (0/1), I need execute an operation on success, how can i capture success return value?

Thanks