Changes
Title
unchanged
How to render a view in Fancybox using ajax
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
fancybox, ajax, views
Content
changed
[...]
Yii::app()->clientScript->scriptMap['*.js'] = false;
$this->render('view',array('value'=>'data'));
}
```
### **Step 3: Implements JS method to trigger Fancybox after Ajax update**
~~~
[j
savascript]
function afterAjax()
{
$.fancybox({
href : '#preview',
scrolling : 'no',[...]