Yii CJuiDialog Tutorials

CGridview Auto Update With CJuiDialog

This tutorial will help you to update the cgridview with out page reload When you use the CJuiDialog Form to update the record. Some time We will do this type of concept. We have to show the listing and update action in cgridview widget page to avoid the new page for updating the record or some technical concept based on project. Here I used iframe concept with cjuidialog to update […]... Read More »

Yii CJuiDialog

CJuiDialog displays a dialog widget. This article will give the information about “how to handle cjuidialog” in yii framework. I added the sourcecode below.Download | DemoYii CJuiDialog : DefaultYii CJuiDialog : AnimationYii CJuiDialog : Auto OpenYii CJuiDialog : Default <h1>Yii CJuiDialog : Default</h1> <?php /** Start Widget **/ $this->beginWidget('zii.widgets.jui.CJuiDialog',array( 'id'=>'mydialog', 'options'=>array( 'title'=>'Dialog box', 'autoOpen'=>false, ), )); echo 'dialog content here'; $this->endWidget('zii.widgets.jui.CJuiDialog'); /** End Widget **/ echo CHtml::link('Open Dialog', '#', array( […]... Read More »

CJuiDialog Close Automatically With IFrame In Yii

Cjuidialog ControllerCjuiDialog ViewCjuiDialog Ajax View With Auto CloseCjuidialog Controller [CjuidialogController.php]I added the controller for cjuidialog action. <?php class CjuidialogController extends Controller { public function actionCJuidialog() { $this->render("cjuidialog"); } public function actionAjax() { $this->render("ajax"); } } ?> CjuiDialog View [cjuidialog.php]Using this code I added content into iframe via ajax request. I called “cjuidialog/ajax” action to get the content and i load that content into iframe. <?php Yii::app()->clientScript->registerScript("iframe-cjuidialog"," $('#opencjuidialog').live('click',function() { $('#iframe').attr('src','".Yii::app()->createAbsoluteUrl("cjuidialog/ajax")."'); $('#cjui-dialog').dialog('open'); […]... Read More »