+ -
当前位置:首页 → 问答吧 → jqueryui iframe 的问题

jqueryui iframe 的问题

时间:2011-11-09

来源:互联网

JScript code

 $("#custdiv").dialog({
                autoOpen: false, //如果设置为true,则默认页面加载完毕后,就自动弹出对话框;相反则处理hidden状态。 
                bgiframe: true, //解决ie6中遮罩层盖不住select的问题  
                width: 755,
                height:450,
                modal: true, //这个就是遮罩效果   
                buttons: {
                    "Close": function () {
                        $(this).dialog("close");
                    }
                }

            });
             $("#addcust").click(function () {//点击弹出
                $("#custdiv").dialog('open');
            });


页面代码
HTML code

<div id="custdiv" title="客户列表">
<iframe  width="755" height="450" frameborder=0 scrolling="yes" src="[color=#FF0000]customers.aspx[/color]">
</iframe>
</div>


现在是正常弹出来了,我要的效果是处理完customers.aspx之后值返回,并且关闭层custdiv

作者: yao970953039   发布时间: 2011-11-09

哪你就在customers.aspx中写代码关闭层

作者: xiaofanku   发布时间: 2011-11-09

引用 1 楼 xiaofanku 的回复:

哪你就在customers.aspx中写代码关闭层

怎么写,帮下忙

作者: yao970953039   发布时间: 2011-11-09

在customers.aspx中你值返回怎么写的。。

作者: zsx841021   发布时间: 2011-11-09

JScript code

 $("#custdiv").dialog('close');



作者: andyalex   发布时间: 2011-11-09

你问的是从从子页面访问父页面元素的问题吗?
C# code

$(window.parent.document).find("input[id=custdiv]").dialog('close');

作者: andyalex   发布时间: 2011-11-09