I have searched for my problem on the forum without any success.
I have problem in AJAX views. For example, I would like to display a CAutoComplete widget but the CSS and JS of the widget are not loaded, since the registerScript and registerCssFile of the CAutoComplete component are done in the AJAX view.
What is the best way to display a CAutoComplete (or any other widgets using CCS and JS) in an AJAX view ?
This issue is caused by Yii sending to much javascript a second time to the page. For example your page requires jQuery and it is included then via ajax you replace a portion of the page with controls that require ajax. Since Yii is mostly stateless it does not know that jQuery is already on the page so it sends the code to require jQuery on the page with the content. Now you have a second instance of jQuery - this tends to make a mess of things. If you know that jQuery is already on the page you can instruct Yii not to send it something like Yii::app()->clientScript->scriptMap[‘jQuery.js’] = false; …
Anyways I regress - your issue is likely the first item…