title: Yii ajaxLink() only works once
body: <p>I have a <code>CListView</code> that uses <code>ajaxLink()</code> in the <code>_view</code> file.</p>
  
  <p>View (index.php)</p>
  
  <pre><code>&lt;?php
  
  Yii::app()-&gt;clientScript-&gt;registerScript('ajaxUpdate',
  "
  //javascript function to update the listview using ajax
  function updateItemList(){
      $.fn.yiiListView.update('itemList');
      return false;
  }
  
  ", CClientScript::POS_READY);
  
  ?&gt;
  &lt;?php $this-&gt;widget('zii.widgets.CListView', array(
      'dataProvider'=&gt;$dataProvider,
      'itemView'=&gt;'_view',
      'id'=&gt;'itemList',
  
  )); ?&gt;
  </code></pre>
  
  <p>partial (_view.php)</p>
  
  <pre><code>&lt;?php echo CHtml::ajaxLink('Delete',array('libdbitems/delete','id'=&gt;$data-&gt;id),
                  array('type'=&gt;'POST','success'=&gt;'function(){updateItemList()}'),
                  array('confirm'=&gt;'Are you sure you want to delete this item?',
                      'id'=&gt;'delete-'.$data-&gt;id));  ?&gt;
  </code></pre>
  
  <p>The controller is basically just the default <code>actionIndex()</code> that is generated with Gii.</p>
  
  <p>Here's the problem: when I click my <code>Delete</code> link the first time after a page load, it behaves as expected. After that, clicking <code>Delete</code> does nothing. (It refreshes the ListView, but no changes are made.)</p>
  
  <p>I'm pretty sure the problem lies in how Yii is binding <code>click()</code> events to my links in javascript, but I have no idea how to fix it. I have tried using the <code>live=true</code> option as others have suggested, but it does nothing.</p>
  
  <p>Does anyone know how to fix this issue so that my Delete link works multiple times without having to reload the page?</p>