Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 提交表单后在fancybox上调整大小_Javascript_Jquery_Fancybox - Fatal编程技术网

Javascript 提交表单后在fancybox上调整大小

Javascript 提交表单后在fancybox上调整大小,javascript,jquery,fancybox,Javascript,Jquery,Fancybox,我有以下问题。我有一个在fancybox中打开的表单。单击提交后,我使我的PHP重定向到一个新的html“message sent successfully”。但是,窗口大小较大,提交表单后不会应用调整大小。我想知道,提交表单后,如何在fancybox窗口中调整大小,以正确的比例显示消息 提交前: <script type="text/javascript"> $(document).ready(function(){ $(".maskRight").fancybox({ "w

我有以下问题。我有一个在fancybox中打开的表单。单击提交后,我使我的PHP重定向到一个新的html“message sent successfully”。但是,窗口大小较大,提交表单后不会应用调整大小。我想知道,提交表单后,如何在fancybox窗口中调整大小,以正确的比例显示消息

提交前:

<script type="text/javascript"> 
$(document).ready(function(){
$(".maskRight").fancybox({
  "width" : 420,
  "height" : 495,
  "autoScale" : false,
  "transitionIn" : "none",
  "transitionOut" : "none",
  "type" : "iframe"
  });
$.fancybox.resize;
});
</script>


$(文档).ready(函数(){
$(“.maskRight”).fancybox({
“宽度”:420,
“高度”:495,
“自动缩放”:错误,
“transitionIn”:“无”,
“transitionOut”:“无”,
“类型”:“iframe”
});
$.fancybox.resize;
});
提交后:

->API方法:

$.fancybox.update()

我已经测试过这个方法。它显示以下错误:“未捕获类型错误:对象函数(obj)”我相信您正在使用fancybox 1,我的答案是假设fancybox 2。我道歉。