We have made a custom way to handle a case that's somewhat related. It's tied up to jquery mobile, but should be easy to modify to a usual website. jQuery Mobile expects a returned page over ajax to be wrapped in a DIV, and any script outside this div is not usable for us, hence the wrapping. Basically, we never enable processOutput in any of our renders, and this method ensures that scripts are returned.

i have a gridview column with scripts.
i want to render script on ajax grid view. i think i can't use zaccaria solution because yii create renderpartial by it self.
we have any official patch for this or better solution? i searched forum many times and this is a usuall issue.
and is there any intention to fix this by Yii developers?

Thanks for the workaround! worked for me if there was only one subview. problem is there are 2 subviews.
the solution only worked for one of the subviews. Does this have something to do with the ID's? also the log says that jQuery is undefined.

I have several controllers which will be called through ajaxlinks. For example home/index, news/index ...
Let's say home/index only includes static content. Now when i change the controller through an Navigation ajaxlink to the controller news/index which includes a CListview with Pagination and ajaxUpdate = true, the pagination with ajax doesn' t work. It even seems that the css is not properly includes, because the pagingation links are displayed in liststyle.

In the news controller i used the ZController extension from Zach for rendering ajax requests, which solved for me the duplicate ajax requests.

If i call the controller directly news/index with the "renderPartialWithHisOwnClientScript" method from ZController from Zach, the ajax pagination works and also the css is properly working. The css and ajax pagination works also fine, if i click on an pagination link for the first time

If i use the "renderPartial" method i works fine, but then i got the duplicate ajax requests in CListview.

I think the problem is, that while using the "renderPartialWithHisOwnClientScript" method the needed jquery for Clistview pagination is not loaded.