【问题标题】:enable extjs loadmask Iframe while processing处理时启用 extjs loadmask Iframe
【发布时间】:2014-11-01 03:51:45
【问题描述】:

我正在尝试在生成 pdf 报告时为 extjs4 Iframe 设置加载掩码

var WinReporte=Ext.create('Ext.Window', {
        title: 'Reporte de Clientes',
        width: 750,
        height: 400,
        layout: 'fit',
        xtype: 'panel',
        modal:true,

         html:'<iframe src="pdf.php" onLoad="javascript:window.parent.WinReporte.body.unmask();" style="height:100%;width:100%"></iframe>', 

        listeners: {
            show: function(){
                WinReporte.body.mask('Creating report...please wait!')
            },

        } 


    }); 

我在控制台中遇到拼写错误: 未捕获的类型错误:无法读取未定义的属性“正文” 所以负载掩码永远不会隐藏

这里有什么明显的错误吗? 谢谢

【问题讨论】:

    标签: iframe extjs extjs4.2


    【解决方案1】:

    看起来不错,你也可以用:

    WinReporte.setLoading( true )
    WinReporte.setLoading( false )
    

    docs setLoading

    【讨论】:

      猜你喜欢
      • 2011-08-17
      • 2013-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多