zoukankan      html  css  js  c++  java
  • 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);

            }
  • 相关阅读:
    身份证验证
    图片赖加载js代码
    cannot convert from pointer to base class 'QObject' to pointer to derived class 'subClass' via virtual base 'baseClass'
    qt undefined reference to `vtable for subClass'
    .net 与directX
    小代码,大错误
    基类子类在Qt信号量机制下的思考
    QT linux下显示中文的问题
    在QT中引用Shark Machine Learning library
    MVC 5 on Windows Server 2008/IIS 7
  • 原文地址:https://www.cnblogs.com/tiger8000/p/1935701.html
Copyright © 2011-2022 走看看