urgent gridview order

hello everybody.

I want to save url of curent order grid view with ajax call but ajax function reload the full page I want just to relaod grid as usual please help me thanks.


$this->widget('zii.widgets.grid.CGridView', array(

	'id'=>'compte-grid',

	'dataProvider'=>$model->search(),

'columns'=>array(

  array('name' => 'datesession', 'value' => '$data->getDateSession()',  'htmlOptions'=>array('style'=>'width: 13%;')),

)));?>

and this is ajx call function




$('#compte-grid  a').click(function(e) {

	  e.preventDefault();

		var link = $(this).attr('href');

        var uri="<?php echo $_SERVER["REQUEST_URI"];?>";

        $.ajax({

            type:"POST",

            data:{'uri':uri},

            dataType:'JSON',

            url:"<?php echo Yii::app()->createUrl('compte/saveURI'); ?>",

            complete : function(response){

                 window.location.href = link; // <-- This line 

            }

        });

    });