通过easyloader显示对话框

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="通过EasyLoad显示Dialog.aspx.cs" Inherits="MyStartEasyUi.通过EasyLoad显示Dialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title></title>
    <script src="jquery-easyui-1.3.4/jquery-1.8.0.min.js" type="text/javascript"></script>
    <link href="jquery-easyui-1.3.4/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="jquery-easyui-1.3.4/easyloader.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            easyloader.load('dialog', function () {      //通过easyloader显示对话框
                $("#myDialog").dialog({
                    modal: true,
                    collapsible: true,             //设置可折叠
                    toolbar: [{                    //设置工具栏数组
                        text: '添加',
                        iconCls: 'icon-add',
                        handler: function () {
                            $.messager.show({ showType: "fade", msg: "添加数据", title: "提示", timeout: 1000 });
                        }
                    }, {
                        text: '保存',
                        iconCls: 'icon-save',
                        handler: function () {
                            $.messager.show({ showType: "fade", msg: "保存数据", title: "提示", timeout: 1000 });
                        }
                    }],
                    buttons: [{                    //设置下方按钮数组
                        text: '提交',
                        iconCls: 'icon-ok',
                        handler: function () {
                            $.messager.show({ showType: "fade", msg: "提交数据", title: "提示", timeout: 1000 });
                        }
                    }, {
                        text: '取消',
                        iconCls: 'icon-cancel',
                        handler: function () {
                        }
                    }]
                });               
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="myDialog" title="我的对话框" style="width: 400px; height: 200px;">
        Dialog Content.
    </div>
    </form>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值