How to avoid script duplication in yii ajax?
How to avoid script duplication in yii ajax?
register scripts
if (!Yii::app()->clientScript->isScriptregistered("ajax-link-handler"))
Yii::app()->clientScript->registerScript("ajax-link-handler","
$('body').live('click',function(){alert(1);})
");
Take a look at this comment.