• lhgdialogv3.13 使用点滴


    一、v3.13 在框架中使用的时候,一定要注意 在最外层的框架页 index.htm 中一定要加上 css

    <link type="text/css" href="lhgdialog.css" rel="stylesheet"/>

    否则弹出的窗体没有样式,这在 以前的 v2.37 中是不用的。

    二、

    代码

        
    <link href="lhgdialog/lhgdialog.css" rel="stylesheet" type="text/css" />
        
    <script type="text/javascript" src="lhgdialog/lhgcore.min.js"></script>
        
    <script type="text/javascript" src="lhgdialog/lhgdialog.js"></script>  
        
    <script type="text/javascript">
            J(
    function () {

                J(
    '#a').dialog({
                    id: 
    'd1',
                    title: 
    '新建文档',
                     
    400,
                    height: 
    300,
                    cover: 
    true,
                    page: 
    'basicpage.aspx'
                });

                J(
    '#c').dialog({ id: 'd2', title: '内部链接', cover: true, page: 'basicpage.aspx' });
            });

            
    function opdlg(num, num2) {
                
    var dlg = new J.ui.dialog({ id: 'd3', title: '内部链接', page: 'basicpage.aspx?id=' + num + '&name=' + num2, cover: false });
                dlg.ShowDialog();
            }

            
    function opdlg2(num, num2) {
                
    var dlg = new J.ui.dialog({ id: 'd3', title: '公司发文', btns: false, rang: true,  700, height: 450, page: 'http://www.cnblogs.com/OAapp/WebObjects/SendMessage.aspx?id=' + num + '&name=' + num2, cover: true });
                dlg.ShowDialog();
            }

        
    </script>
     
    <input id="Button2" type="button" onclick="opdlg2(5,6)"    value="发送短信"/>

    弹出的页关闭窗口后,刷新父页或是跳转到别的页

    代码
    var dg = frameElement.dg;

                dg.addBtn('no', '取消', cancel);
                dg.addBtn('subbtn', '确定', tijiao);

                function cancel() {

                    dg.reload();
                    //dg.reload('', 'http://www.google.com');
                }
     protected void Button1_Click(object sender, EventArgs e)
            {
                ClientScript.RegisterStartupScript(GetType(), 
    "alert""cancel();alert('数据上传成功!');"true);

            }
  • 相关阅读:
    [LeetCode] Output Contest Matches 输出比赛匹配对
    [LeetCode] 527. Word Abbreviation 单词缩写
    [LeetCode] Permutation in String 字符串中的全排列
    [LeetCode] 560. Subarray Sum Equals K 子数组和为K
    [LeetCode] Reshape the Matrix 重塑矩阵
    [LeetCode] 536. Construct Binary Tree from String 从字符串创建二叉树
    [LeetCode] IPO 上市
    [LeetCode] Binary Tree Tilt 二叉树的坡度
    [LeetCode] Array Partition I 数组分割之一
    [LeetCode] Zuma Game 祖玛游戏
  • 原文地址:https://www.cnblogs.com/tiger8000/p/1935701.html
Copyright © 2020-2023  润新知