
echo CHtml::ajaxLink( 'Delete from project', array('link/DelFromProject'), array( 'update' => '#index', 'type'=>'POST', 'data'=>array( 'id_link'=>CHtml::encode($data->id_link), 'id_project'=>CHtml::encode($_REQUEST['id_project']) ) ) );
Posted 08 July 2010 - 05:20 PM
echo CHtml::ajaxLink( 'Delete from project', array('link/DelFromProject'), array( 'update' => '#index', 'type'=>'POST', 'data'=>array( 'id_link'=>CHtml::encode($data->id_link), 'id_project'=>CHtml::encode($_REQUEST['id_project']) ) ) );
Posted 09 July 2010 - 08:50 AM
<div id="index"> <?php $this->renderPartial('_subview');?> </div>
<?php echo CHtml::ajaxLink( [...] array( 'update' => '#index', ) );?>
<div id="difForAjaxReplaceOfTheWholeView"> <?php echo $content?> </div>
Posted 09 July 2010 - 10:27 AM
zaccaria, on 09 July 2010 - 08:50 AM, said:
<div id="index"> <?php $this->renderPartial('_subview');?> </div>
<?php echo CHtml::ajaxLink( [...] array( 'update' => '#index', ) );?>
<div id="difForAjaxReplaceOfTheWholeView"> <?php echo $content?> </div>
'success' => 'function(data) { $("#teste", window.parent.document).html("File '.$id_file.' added with success to project '.$id_project.'"); $("#index").html(data); }'
Posted 09 July 2010 - 10:48 AM
if(isset($options['update'])) { if(!isset($options['success'])) $options['success']='js:function(html){jQuery("'.$options['update'].'").html(html)}'; unset($options['update']); } if(isset($options['replace'])) { if(!isset($options['success'])) $options['success']='js:function(html){jQuery("'.$options['replace'].'").replaceWith(html)}'; unset($options['replace']); }
Posted 09 July 2010 - 11:39 AM
tri, on 09 July 2010 - 10:48 AM, said:
if(isset($options['update'])) { if(!isset($options['success'])) $options['success']='js:function(html){jQuery("'.$options['update'].'").html(html)}'; unset($options['update']); } if(isset($options['replace'])) { if(!isset($options['success'])) $options['success']='js:function(html){jQuery("'.$options['replace'].'").replaceWith(html)}'; unset($options['replace']); }