Hi quys,
I have a question on how the "replace" and "success" options are working.
I have the following link
<div >
<?php echo CHtml::ajaxLink('Approve', array('backend/approveComment',
array('id'=> $comment->id),
array('replace' => '#target')) );?>
</div>
The request will be succesfully executed and its result ist 'test'. But the content of the link will not be replaced.
The is also true if i provide a success function as follows:
function(html) {$('id').html(html)}
Any idea how this needs to be done?