Hi!
I have a link (with image).
I need to make some ajax call on click.
However, I cannot even register simple click event.
Where is my mistake?
<?php
Yii::app()->clientScript->registerScript('tester',
'$(".down-link").bind("click",function(){alert("test");})'); //this never happens!!!
$this->widget('bootstrap.widgets.BootGridView',array(
'id'=>'nav-grid-view',
'type'=>'striped bordered condensed',
'dataProvider'=>$dataProvider,
'template'=>"{items}",
'columns'=>array(
'id',
'code',
'title',
'nav_order',
'is_active',
array(
'class'=>'bootstrap.widgets.BootButtonColumn',
'htmlOptions'=>array('style'=>'width: 50px'),
'header'=>Yii::t('app','Operations'),
),
array(
'type'=>'raw',
'name'=>'down',
'value'=>
'CHtml::link(CHtml::image("images/up/test.png"),
"#",
array(
"id" => "down-link-{$data["id"]}",
"class" => "down-link"
))',
'sortable'=>false,
),
), //this is link on which i want to register event
));
?>