解决方案 »

  1.   


    <div id="dialog" class="dialog"  ></div>
      

  2.   


    我其他页面单独使用一个close是可以的
      

  3.   

    uDialogClose();  你看你这方法有定义吗   
      

  4.   

    function userTree(){
    loadCont("uDialog","<n:base/>/wjsf/fwTree.action");
    $( "#uDialog" ).dialog({
    title: "选择发送部门",
    modal: true,
    width:430,
    height:345,
    buttons: [
                {
                 text:"确定",
                 click: function(){userSave();}
                },
                {
                 text:"取消",
                 click: function(){$(".uDialog").dialog("close");}
                }
    ]
    });
    }
    </SCRIPT>
    <div id="uDialog" class="uDialog"></div>
      

  5.   

    会不会是JQuery UI的方法冲突了
      

  6.   


    你现在是能打开?  你关闭的时候,先关闭后边的,再关顶级的试试。不能先关后边的,我顶级的要选中数据在,后边的dialog上显示,这样就没法显示了,后边的还有个保存按钮呢
      

  7.   

    直接close就行了,为什么还要定义一个方法呢function add() {
    var id = "";
    var title = "添加";
    loadCont("dialog", "<n:base/>/wjsf/fw_add.action?rand=<s:property value='rand'/>");
    $("#dialog").dialog({
    title : title,
    modal : true,
    width : 510,
    /* height:145, */
    buttons : [{
    text : "保存",
    click : function () {
    from_member_submit();
    }
    }, {
    text : "取消",
    click : function () {
    dialogClose($("#dialog"));
    }
    }
    ]
    });
    }function dialogClose(obj) {
    obj.dialog("close");
    }
    下面的dialog是在上面的dialog里面弹出的对话框。
    function userTree() {
    loadCont("uDialog", "<n:base/>/wjsf/fwTree.action");
    $("#uDialog").dialog({
    title : "选择发送部门",
    modal : true,
    width : 430,
    height : 345,
    buttons : [{
    text : "确定",
    click : function () {
    userSave();
    }
    }, {
    text : "取消",
    click : function () {
    uDialogClose($("#uDialog"));
    }
    }
    ]
    });
    }
      

  8.   


    我表述有问题,重新说一下吧,就是我用到了JQUERY UI,ZTREE,我把架包放在list页面里面,弹出add页面,再弹出addtree页面,addtree里面有ZTREE,在list里面加架包,在谷歌里面显示正常,IE不正常,在addtree页面加ztree的架包,显示正常,但是无法关闭。
      

  9.   


    我表述有问题,重新说一下吧,就是我用到了JQUERY UI,ZTREE,我把架包放在list页面里面,弹出add页面,再弹出addtree页面,addtree里面有ZTREE,在list里面加架包,在谷歌里面显示正常,IE不正常,在addtree页面加ztree的架包,显示正常,但是无法关闭。