this is my view
<div class="divaddnote">
<div class="divabouthead">
<span class="headingtext">Add Note</span>
</div>
<div class="divnoteinner">
<?php foreach ($data as $row): ?>
<div class="divdel">
<?php
echo CHtml::link('Delete',array('/blogger/delnote','param1'=>$row['id']));
?>
</div>
<div class="divnote">
<?php echo $row['note']; ?><br>
</div>
<div class="divdate">
<?php echo $row['date']; ?>
<?php echo $row['time']; ?><hr>
</div>
<?php endforeach; ?>
</div>
<div class="divadd">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'note-form',
'enableAjaxValidation'=>True,
)); ?>
<div class="row">
<?php echo $form->textarea($model10,'note',array('size'=>60,'maxlength'=>600)); ?>
<?php echo $form->error($model10,'note'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model10->isNewRecord ? 'Add Note' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div>
</div>
this view is for add n delete note n showing the note on same page
but in controller i redirect to home page after deletion and update.
BUt problem is i want that when i delete or add note it will not redirect on different page it should redirect on same page after deletion or add.
i know that i can use ajax.
but i dont know how to use it n where to use it .
Plzz help me