ajaxLink triggers only once

Hi all,

I’m having a problem with ajaxlink. Here it goes at its basics:

I have a list of items wich all write it’s own ajaxlink as follows:

<div class="lis-item">


$this->widget('zii.widgets.CDetailView', array(







echo CHtml::ajaxLink('modify', array('valves/update'), array('data'=>array('id'=>$data->id),'replace'=>'#valve-update-form-'.$data->id));


	<div id="valve-update-form-<?php echo $data->id; ?>"></div>


As you can see, this link calls the update action contained in the valve controller.

This said action, for sake of testing only returns a javascript alert, like so:

[b]public function actionUpdate($id)


echo '&#60;script type=&quot;text/javascript&quot;&gt; alert('.&#036;id.') &lt;/script&gt;';


The thing is, it triggers correctly only one time. If I click the link a second time the action function does not get called at all.

Orriginally the action function was loading further information about the object and I wanted to toggle on / off display of this info. Since it did not wok as explained, I tested with the javascript alert and get the exact same behavior.

I read on other threads about the multiple ajax calls and properly id’ed every link and update DIV in the list.

Anyhow, it does not work neither if only one item in the list.

Can anyone please help on this ?

Thank allready