This extension provide a new renderPartial method.
This method will render the client script (generated from buttons, dropdown list with auto-submit, zii widget and so on) immediatly after the html of the subiew.
This allow to refresh the subview with his relative clientScript, solving many common problem with ajax-refresh
Yii 1.1 or above
For use the extension, save the file in a folder included by Yii.
When you create a div that will be ajax-refreshed, create like that:
<div id="toRefresh"> <?php $this->renderPartialWithHisOwnClientScript('_sibView', $data); </div>
Use the same method even answering to the ajax request:
if (Yii::app()->request->isAjaxRequest) $this->renderPartialWithHisOwnClientScript('_sibView', $data);