How To Call Action In Cjuidialog ?

Dear friends,

show dialog like this.




<?php echo CHtml::link('detail', '#', array(

				   'onclick'=>'$("#mydialog").dialog("open"); return false;',

				)); ?>


<?php 

	$this->beginWidget('zii.widgets.jui.CJuiDialog',array(

    'id'=>'mydialog',

    // additional javascript options for the dialog plugin

    'options'=>array(

        'title'=>'Detail',

        'autoOpen'=>false,

    ),

));


    echo 'dialog content here';


$this->endWidget('zii.widgets.jui.CJuiDialog');


?>

But there is any ways that when we click to link, it will call the controller and display in dialog ?

thankyou very much

Please use ajaxLink and then you can call the controller action and render your dialog box accordingly.

Use one variable and store link in to that variable then replace # with that variable.