2012-02-02 88 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"); 

我的工作圍繞代碼