array(
        'class' => 'CButtonColumn',
        'template' => '{delete}{update}{add}',
        'buttons' => array(
            'add' => array(
                //'url'=>'Yii::app()->createUrl("user/update", array("id"=>$data->id))',
                'click' => "function (){addClassroom(); $('#dialogClassroom').dialog('open'); }"
            )
        ),
function addClassroom()
{
<?php echo CHtml::ajax(array( // code for the javascript
  'url'=>array('user/update&id='.$date->id), 
  
   'data'=> "js:$(this).serialize()",  
   'type'=>'post',  
   'dataType'=>'json',  
   'success'=>"function(data) 
can any one tell me how to send id from click function() to function addclassroom() as i am trying on update page popout when click on add button
thank YOu!