我在页面中有两个按钮。一个用于提交页面,一个用于Fancybox。点击提交按钮后,Fancybox不起作用。我在使用提交按钮单击时使用YII模型验证。Fancybox在提交父页面后无法工作
我facybox JS是:
$(function(){
$(".various3").fancybox({
'width' : '75.65%',
'height' : '100%',
'top' : '-1020',
'autoScale' : false,
'autoDimensions' : false,
'scrolling' :'No',
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
'padding' : 0,
'margin' : 0,
'onComplete' : function(){$('.fancybox-iframe').contents().find('#MerchantLocations_location_name').focus();}
});
});
这是我的看法:
在Mozilla浏览器错误控制台<a href="<?php echo Yii::app()->createAbsoluteUrl('/admin/addlocation/');?>" class="various3 " ><input type="button" class="big-btns-small floatright" value="Add Location"/></a>
也是 “错误:类型错误:t是未定义” 正在出现
其非网格页面其页面添加和ajax验证被禁用 – 2013-04-04 15:03:59