如何用jquery.easyui 弹出层并且在这个弹出层里引入新页面?easyui可以做到么??

解决方案 »

  1.   

    2楼的朋友 能给个demo吗?
      

  2.   

    http://jqueryui.com/demos/dialog/#animated
    看看这个例子,在dialog里加一个iframe就可以了。
    --------------------------------------帅签分割线-------------------------------------------------
      

  3.   

    应该是在层里加一个iframe  我去试试
      

  4.   

    util.showEditDialog = function (url, title, width, height, func) {
        var content = '<iframe src="' + url + '" width="100%" height="99%" frameborder="0" scrolling="no"></iframe>';
        var divContent = '<div id="' + id + '">';
        var win = $('<div/>').dialog({
            content: content,
            width: width,
            height: height,
            modal: true,
            title: title,
            catch: false,
            //buttons: [{
            //    text: '确定',
            //    iconCls: 'icon-add',
            //    handler: function () {
            //        var d = $(this).closest('.window-body');
            //        // 执行操作后关闭
            //        d.dialog('destroy');
            //    }
            //}],
            onClose: function () {
                $(this).dialog('destroy');
            }
        });    win.dialog('open');
    }