jQuery.yii is undefined after ajax request

Here http://www.yiiframework.com/doc/cookbook/26/ the link i posted comment for yii cookbook. Any suggestion will appreciate :)

[SOLVED]: I solved this by register yii script in controller of ajax request "controller/action"


Oh Tnx man!

That work perfect to me to.

I dont understand about this clien script.

Is there any tutorial? Cause i want to publish some my js…

But i dont know hot to write js, that will be corect.

Always i get jquery not defined error :(

You just saved me from what would have been an frustrating long search! THKS!

Yii::app()->clientScript->scriptMap['*.js'] = false;

added to a controller action method will prevent an ajax-loaded div from clobbering jQuery.yii

I found that some ajax loaded divs were breaking my CRUD delete button, which was calling jQuery.yii.confirmSubmit.

Once I added the scriptMap * js false to my ajax update methods, it allowed the delete button to find jQuery.yii again.