easyui属于jQuery轻量级框架,没用过的可以下来用用,很不错
我的问题是
1. 如何在messager.show(右下弹窗)里加按钮(执行js事件就行)?
2. 如何判断该弹窗是否关闭或者是否打开?

解决方案 »

  1.   

    问题3,如果我设置show的timeout为0,如何在js中关闭这个窗口
      

  2.   

    没有用过
    ext框架倒是用了。
    query,ext中注册,执行事件都差别不大
      

  3.   

    修改自DEMO的例子:function show3(){
    $.messager.show({
    title:'My Title',
    msg:'Message never be closed.<a href="#" id="btn">click me</a>',
    timeout:0,
    showType:'fade'
    });
    $('#btn').click(function(){
    var p = $(this).parent(); // 得到PANEL
    p.panel('destroy');
    });
    }
      

  4.   

    [align=left]jQuery.messager.show({
                                    title: '最新未读的短消息',
                                    msg: '<iframe frameborder='0' width='100%' height='170' src='ShowMsg/ShowMsg.aspx' id='iframeINow' name='iframeINow' scrolling='no'></iframe>',
                                    width: 300,
                                    height: 'auto',
                                    timeout: 0                          
    });[/align]
      

  5.   

    简单,用框架就行了jQuery.messager.show({ title: '最新未读的短消息', msg: '<iframe frameborder='0' width='100%' height='170' src='ShowMsg/ShowMsg.aspx' id='iframeINow' name='iframeINow' scrolling='no'></iframe>', width: 300, height: 'auto', timeout: 0 });