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);

            }
  • 相关阅读:
    HTML基础
    JPA+atomikos实现分布式事务
    SpringBoot使用MybatisGenerator操作数据
    Spring data JPA的多数据源实现
    整合Spring Data JPA操作数据及排序分页
    首次git推送到远端
    SpringBoot结合Jpa的post为空和时间问题
    记一次SptingBoot启动报错Error creating bean with name 'requestMappingHandlerAdapter'
    解决IDEA中Cannot resolve table * 的问题
    Sringboot jdbc 操作数据库
  • 原文地址:https://www.cnblogs.com/tiger8000/p/1935701.html
Copyright © 2011-2022 走看看