Difference between #3 and #4 of
Popup AJAX DialogBox without any extension

Revision #4 has been created by Kostas Apazidis (KonApaz) on Jun 26, 2013, 11:34:24 AM with the memo:

Popup AJAX DialogBox without any extension
« previous (#3) next (#5) »

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
[...]
5 1
6 followers
Viewed: 31 072 times
Version: 1.1
Category: How-tos
Last updated by: Maurizio Domba Cerin
Created on: Jun 25, 2013
Last updated: 8 years ago
Update Article

Revisions

View all history