1

我已经使用 Extjs 4 完成了应用程序,在应用程序中的一些地方展示了 statis pdf 页面。在这个应用程序给用户选项,他可以从任何页面注销。如果我在静态 pdf 屏幕中,请单击此处注销按钮。它将显示确认框以注销。这个在 mozila 和 chrome 中运行得非常好,但问题只出现在 IE 和 safari 中。在 IE 和 safari 单击注销按钮时,屏幕会自行执行一些操作,无法在 pdf 页面上看到确认消息框,我认为它可能落后于 pdf。谁能告诉我如何解决这个问题?非常感谢。谢谢你。

这是我的代码:

onbtnLogoutClick: function(){
        Ext.Msg.confirm('Confirm', 'Are you sure you want to Logout?', function(btn){
        if (btn == 'yes'){
           Ext.getCmp('mainContainer').removeAll();
           Ext.getCmp('mainContainer').insert(0,{xtype:'loginView'});

   }  
  }
}

这是我的示例代码,展示 pdf

 {        
    xtype: 'panel',
    frame: true,
    height: window.innerHeight-100,
    html: '<iframe width="100%" height="95%" frameborder="0" scrolling="no" src='MypdfUrl'></iframe>'
}
4

2 回答 2

0

通常它应该工作。检查开发人员工具(IE),是否已创建组件引用。

尝试另类的节目。

Ext.Msg.show({
     title:'Save Changes?',
     msg: '<your mes>',
     buttons: Ext.Msg.YESNOCANCEL,
     fn: processResult,
     animateTarget: 'elId',
     icon: Ext.window.MessageBox.QUESTION
});

谢谢

于 2013-05-16T14:48:58.300 回答
0

我不确定,但让我们想想html

 {        
   xtype: 'panel',
   frame: true,
   height: window.innerHeight-100,
   html: '' /*Becos some of html tags string makes Extjs error! within IE*/
 }    

如果 html ='' 我认为它会起作用。

于 2013-06-11T06:47:50.293 回答