Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.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_Twitter Bootstrap_Fancybox 2 - Fatal编程技术网

Javascript 表单重定向后Fancybox默认关闭不起作用

Javascript 表单重定向后Fancybox默认关闭不起作用,javascript,jquery,twitter-bootstrap,fancybox-2,Javascript,Jquery,Twitter Bootstrap,Fancybox 2,我已经使用bootstrap创建了我的页面,并且有一个链接可以触发fancybox框,如下所示: <a class="iframe" href="AForm.asp?ID=<%=Request("ID")%>"><button class="btn-warning">Action Form</button></a> JQuery <script type="text/javascript"> $(docume

我已经使用bootstrap创建了我的页面,并且有一个链接可以触发fancybox框,如下所示:

<a class="iframe" href="AForm.asp?ID=<%=Request("ID")%>"><button class="btn-warning">Action Form</button></a>

JQuery

 <script type="text/javascript">
    $(document).ready(function() {
        $("a.iframe").fancybox({
            'type' : 'iframe', 
            'width':500,
            'height':500,
            'afterClose':function () {
        window.location.reload(); } 
        });
    });
</script>

$(文档).ready(函数(){
$(“a.iframe”).fancybox({
'type':'iframe',
“宽度”:500,
‘高度’:500,
“afterClose”:函数(){
window.location.reload();}
});
});
默认功能从一开始就可以正常工作:我可以触发fancybox加载,单击默认的十字图标,它会关闭该框-所有功能都按预期工作

当我在fancybox(html/classic asp)中提交表单时,它会重定向到一个标准html页面,该页面字面上只写着“请关闭此页面”,默认的关闭十字图标不会起任何作用。它是可见的,并且位于正确的位置,但没有单击功能


我在HTML页面中尝试过自定义关闭按钮,但没有任何效果-它根本不想关闭。有人有什么想法吗?谢谢

这不是一个很好的答案,但在一整天试图解决这个问题之后,我放弃了Fancybox,发现Colorbox在我尝试做的事情中几乎是开箱即用的