Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.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
Jquery Simplemodal iframe表单-提交到父窗口_Jquery_Simplemodal - Fatal编程技术网

Jquery Simplemodal iframe表单-提交到父窗口

Jquery Simplemodal iframe表单-提交到父窗口,jquery,simplemodal,Jquery,Simplemodal,我有一个SimpleModel框,单击链接即可在iframe中加载的登录名: $(".tab-link-register-login a").click(function(e) { var src = "/static/goal/html/login.html"; $.modal('<iframe src="' + src + '" height="240" width="690" style="border: 0;">', { containerCs

我有一个SimpleModel框,单击链接即可在iframe中加载的登录名:

$(".tab-link-register-login a").click(function(e) {
    var src = "/static/goal/html/login.html";
    $.modal('<iframe src="' + src + '" height="240" width="690" style="border: 0;">', {
        containerCss:{
            height: 360,
            padding: 0,
            width: 730
        },
        opacity: 80,
        overlayClose: true,
        overlayCss: {
            backgroundColor: '#FFF'
        }
    })
    e.stopPropagation();
    return false;
});
有没有一种使用这个插件的方法

--编辑--

我发现可以使用
parent.$.modal.close()关闭模式但它不会在之后提交表单。仍在朝着这个方向努力…

target=“\u parent”
添加到iframe内的表单元素会对其进行排序

target=“\u parent”
添加到iframe内的表单元素会对其进行排序

$('#login form').click(function(){
    $.modal.close();
    return true;
});