Yii Framework Forum: Update Page - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Update Page Rate Topic: -----

#1 User is offline   razz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 13-December 12

Posted 19 December 2012 - 10:37 AM

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!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users