I found these examples for updating a div using Ajax however my case is a bit different and I guess that might be the reason why it’s not working.
http://www.yiiframework.com/wiki/49/update-content-in-ajax-with-partialrender/
http://www.yiiframework.com/wiki/87/ajax-update/
In both cases above, link which updates the div is outside the div, e.g.
<div id="update-this"></div>
<div class="link">
<?php echo CHtml::ajaxLink('clickMe', array('ajax'), array('update'=>'#update-this'));?>
</div>
In my case, the ajax link is contained within the div which need to be updated as shown below.
<div id="update-this">
<div class="link">
<?php echo CHtml::ajaxLink('clickMe', array('ajax'), array('update'=>'#update-this'));?>
</div>
</div>
In my case, the controller function is getting called and functionality is being executed just fine however the div is not refreshed with new content.
To provide some context info, it’s like a moderation panel where admin is shown information for approval/rejection and on each selection, div is updated to show next information for moderation with updated ajax links since each information ID is different.