Update Page

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'=&gt;array('user/update&amp;id='.&#036;date-&gt;id), 


  


   'data'=&gt; &quot;js:&#036;(this).serialize()&quot;,  


   'type'=&gt;'post',  


   'dataType'=&gt;'json',  


   'success'=&gt;&quot;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!