top.art.dialog


    function TopClass(ResId) {

        top.art.dialog.open('/Home/Theme/Index?rsId=' + ResId,
                                {
                                    title: '添加分类',
                                    height: '550px',
                                    width: '800px',
                                     top: 50,
                                    lock: true,
                                    close: function () { return true; },
                                    button: [{
                                        name: '确定',
                                        callback: function () {

                                            $("#hfTypeId").val(this.iframe.contentWindow.document.getElementById('hfTypeId').value);
                                            $("#htRsId").val(this.iframe.contentWindow.document.getElementById('htRsId').value);

                                            $.ajax({
                                                type: "POST",
                                                url: "/Home/Theme/InsertData?cTypeid=" + $("#hfTypeId").val() + "&RsID=" + $("#htRsId").val(),
                                                dataType: "text",
                                                async: false,
                                                success: function (data) {

                                                }
                                            });
                                            return true;
                                        }
                                    }, {
                                        name: '返回',
                                        callback: function () {
                                            return true;

                                        }
                                    }]
                                });

    }



    parent.document.getElementsByTagName('iframe')[0].setAttribute("scrolling","no");  设置父级的iframe滚动条隐藏
  parent.document.getElementsByClassName('aui_main')[0].style.height = "550px";  设置父级元素的高度



父子页面传值 :url   。data  。

父页面:

top.art.dialog.data('id',chk_str);
        top.art.dialog.open("/Admin/CardList/GetBook", {
            title: '选择书店',
            height: '550px',
            width: '800px',
            top: 50,
            lock: true,


            close: function () { return true; },
            button: [{
                name: '返回',
                callback: function () {
                    window.location.href = '/Admin/CardList/Index';
                    return true;
                }
            }]
子页面:
id = top.art.dialog.data('id');

你可能感兴趣的:(top.art.dialog)