Changes
Title
unchanged
Popup AJAX DialogBox without any extension
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Popup, AJAX, DialogBox, without, extensions, reusing, fancybox
Content
changed
[...]
$cs->registerScriptFile($baseUrl . '/js/fancybox/jquery.fancybox-1.3.1.pack.js');
$cs->registerCssFile($baseUrl . '/js/fancybox/jquery.fancybox-1.3.1.css');
$cs->registerScriptFile(Yii::app()->request->baseUrl . '/js/popup.js');
echo "<div id='your-form-block-id'>";
echo CHtml::beginForm();
<?php echo CHtml::link('an ajax test', array('controllerA/textA'), array('class' => 'class-link'));
?>
<?php
echo CHtml::endForm();
?>
echo "</div>";
```
In protected folder , create (if it is not exists) js folder and a file with name popup.js[...]