2
내 보고서의 iframe에 대한보기를 만들고 있습니다.jquery UI 대화 상자에서 백본 js보기 iframe보기
'printingReportIcon' : function(){
var page = "http://localhost/Source/#ReportView";
var $dialog = $('#aDialog')
.load(page)
.dialog({
autoOpen: false,
modal: true,
height: 625,
width: 500,
title: "Some title"
});
$dialog.dialog('open');
:
는, 여기에 기본보기 동작입니다 그리고define(["jquery" ,
"underscore" ,
"backbone",
],function($, _, Backbone){
var ReportView = Backbone.View.extend({
el : "#agingFrame",
initialize: function() {
this.$el.html('<iframe src="http://ipadressofreportserver/jasper/blahblah"></iframe>');
},
render: function(){
}
});
return ReportView;
});
나는 사용자가 위의 iframe을 인쇄 할 수있는 또 다른보기를 한 :
<div id="aDialog"></div>
여기 ReportView입니다 문제
모든 소스 코드가 인 대화 상자가 열리고 ReportView은 있지만 iframe은 없습니다.
잘 모르겠어요,하지만 난 문제가 두 번째 뷰 (renderized) 인스턴스화되지 않은 ReportView이라고 생각이
내가 ReportView''의'() 메소드 렌더링'에'이 $의 el.html ('
마침내 나는 당신의 대답 rcarvalho 감사합니다. – Nothing