javascript - Loading backbone js view iframe inside jquery ui dialog -


I am creating a view for the iframe of my report.

  & lt; Div id = "aDialog" & gt; & Lt; / Div & gt;  

Define ReportView :

  here (["jquery", "underscore", "backbone",], function ($, _, Backbone) {var reportview = backbone view.extension ({L: "#Jangfram", Start: Function () {this. $ El.html ('& lt; iframe src = "http: / / Ipadressofreportserver / jasper / blahblah "& gt; & lt; / iframe & gt; ');}, render: function () {}}); return report detail;});  

Then I have another view which can allow the user to print the above iframe, here is the main sequence verb:

  'printingReportIcon': Function () {var page = "http: // localhost / source / # reportview"; Var $ dialog = $ ('# aDialog') .load (page) .dialog ({autoOpen: incorrect, model: true, height: 625, width: 500, title: "some title"}); $ Dialog.dialog ('open');   The problem  

The dialog has been opened with the source code in ReportView , but there is no IFrame.

Any ideas that may be due to this

I'm not sure, But I believe the problem ReportView is not installed on the second view (Remindered). You are getting the relative URL for that scene, but do not present the content.

Try:

  • Use the render method to render the content in the ReportView.
  • Return this content and use it to open the dialog.

I think this is a problem.

Hope this helps


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -