daonhack
(Deathandskulls)
1
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"
Yii::app()->getClientScript()->registerCoreScript(‘yii’);
Tyr84
(Dugonales)
2
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
arrsof
(Sofiaan87)
3
You just saved me from what would have been an frustrating long search! THKS!
glyph
4
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.