AJAX + ClientScript

I’ve seen several posts where developers struggle loading Javascript based elements via AJAX calls.

ie.

yiiframework.com/forum/index.php?/topic/10427-ajax-clientscript

And some solutions have been proposed for example, this patch…

code.google.com/p/yii/issues/detail?id=1961

Still, no clear resolution seems to have been incorporated into the Framework.

So I’m left with three or four possible fixes to a problem that ideally should be fixed in the framework or am I mistaken and this problem is easily resolved?

It seems to me, Yii should support loading a _form.php in a cjuidialog and also support any of the forms Javascript based elements like AutoSuggest etc.