2012-02-02 91 views
1

这个代码工作的Firefox和IE火狐崩溃时jQuery的对话框关闭

var j$dialog = j$('<div><embed width="100%" height="80%" name="plugin" src="'+url+'" type="application/pdf"></div>'); 
        j$dialog.dialog({ 
          modal: true, 
          width: 900, 
          height: 600, 
          draggble: false, 
          position: 'top' , 
          closeOnEscape: false, 
          buttons: { 
           Done: function() { 
             j$("#translist").html(''); 
             j$("#translist").hide(); 
             j$(this).html(''); 
             j$("#buttons").html('<input id="reportgenproceed" class="button" type="button" value="Continue" />'); 
             j$(this).dialog("close"); 
            } 
         } 

        }); 

这个模式弹出,并有从servlet生成一个PDF,但是当我用firefox点击“完成”按钮,火狐崩溃

任何工作,以防止firefox崩溃?

回答

0
if(j$.browser.mozilla)  j$('<iframe height="100%" width="100%" src="'+url+'"></iframe>').dialog({ 
            modal: true, 
            title: "", 
            width: 800, 
            heigth: 600 
          }).dialog("close"); 

我的工作围绕代码