Hello I have and issue with the submit button after show the fancybox. It loses completely the submit functionality.
If I press the Preview link on the grid it will pop up the fancybox, I close it and when I try to press the confirm button it does not work. I got an IE error
I leave you part of the code for your review:
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'card-grid',
	'dataProvider'=>$model->search(), 
	'afterAjaxUpdate'=>'function(id, data){ fancyboxRearm("a[rel=myrel]") }', //provide the correct target!!!
	'columns'=>array(
		'first_name',
		'middle_name',
		'last_name',
		'suffix',
		'title_line1',
		'title_line2',
		'phone_main',
		'phone_direct',
		'phone_mobile',
		'phone_fax',
		'phone_noc',
		'email',
		'address',
		
		
		array('name'=>'view_picture', 
				'type'=>'raw', 
				'header'=>'', 
				'value'=> 'CHtml::link("Preview", Yii::app()->createUrl("card/view", array("id"=>$data->id)), array("rel"=>"myrel"))', 
				'htmlOptions'=>array('width'=>'40','style'=>'text-align:center;'), 
		), 
		array( 
                        'id'=>'inline',
                        'class'=>'CButtonColumn',
						'template' => '{delete}', 
						'deleteButtonImageUrl' => false, 
 
		),
	),
)); ?>
	<div style="color:#72a7d9; font-size:12px; font-style:italic; padding:10px 20px 10px 10px; text-align:left; text-align:right;  ">
		<?php echo CHtml::button('Confirm', array('submit' => array('/email/index&id='.$model->id_order), )); ?>
		<?php 
			$confirmOut = Yii::app()->request->baseUrl.'/images/confirm-default.png';
			$confirmOver = Yii::app()->request->baseUrl.'/images/confirm-over.png';
			echo CHtml::imageButton($confirmOut, 
			array('submit' => array('/email/index&id='.$model->id_order), 'id'=>'confirmButton', 'width'=>'156', 'heigth'=>'53', 'onmouseover'=>'this.src=(\''.$confirmOver.'\')', 'onmouseout'=>'this.src=(\''.$confirmOut.'\')')); 
		?>
		
	</div>
HELP!!
1728
