Community
Participate
Working Groups
Build Identifier: Build id: 20110916-0149 I put an iframe in my page with a link to <iframe id="iframe2" runat="server" src="h t t p : / /localhost:8080/Birt/frameset?__report=report\SalesInvoice.rptdesign&__format" scrolling="auto" width="100%" height="600px" frameborder="0"> </iframe> When we generate in a pdf format it works quite fine. We have an issue in the prototype.js in the stopobserving function on element.removeEventListener(name, observer, useCapture) : message (sorry in french) : Erreur d'exécution Microsoft JScript: Objet appelant non valide. The html format doesn't work but it works when it is not in an iframe. There is no SOAP return and the processing window stay "Processing please wait". The first problem is in the AbstractBaseReportDocument.js class. We need to change : if (BrowserUtility.isIE) by ( BrowserUtility.isIE6 || BrowserUtility.isIE7). The problem seems to be on the birtSoapRequest. We have an Error not specified on the __xmldocument property Reproducible: Always Steps to Reproduce: 1.Put an iframe calling Birt viewer No special setup
Which IE version are you using? I tried the BIRT viewer 3.7.1 + IE9 and there's no problem.
I use version IE 9 version 9.0.8112.16421. When I call this page on Chrome or Firefox, there is no trouble. Here is the aspx code of my page : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <iframe id="iframe2" src="http://localhost:8080/Birt/frameset?__report=report\SalesInvoice.rptdesign&__format=htm" scrolling="auto" width="100%" height="600px" frameborder="0"> </iframe> </body> </html>
I just create an HTML page as follow named test.html ---------------- <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <iframe id="iframe2" src="http://localhost:8080/Birt/frameset?__report=report\SalesInvoice.rptdesign&__format=htm" scrolling="auto" width="100%" height="600px" frameborder="0"> </iframe> </body> </html> ---------------------------------------------------- It works fine with Chrome and firefox but I have this message with ie : The viewing session is not available or has expired. Show Exception Stack Trace Hide Exception Stack Trace And there is no stack trace. Regards Manu
Was there ever resolution on this issue? I'm having the same types of problems with IE when attempting to show reports as HTML. PDF appears to work fine across all browsers (IE, FireFox, Chrome, Safari). I'm using the frameset but not the IFRAME.
Sorry, I provided no good information. Here are the browser versions that I'm using and each displays PDF without a problem, and each exibits different behaviour when attempting to display HTML. IE 9.0.8112.16421 - returns the exception "The viewing session is not available or has expired.", no stack trace. FireFox 8.0.1 - shows the frameset page but no report and no error. Chrome 16.0.912.63 - shows the report but not the frameset. Safari 5.1.2 - shows PDF report even though PDF was not specified (i.e, no __format parameter). I just upgrade from BIRT 2.3.1 which was returning these reports correctly with the same URL: http://localhost/tradeweb/frameset?__overwrite=true&__parameterpage=false&category=br&button=view&__report=reports/bnkPersonnel.rpt.rptdesign (note that category and button parameters are used for our own purposes).
Hello, Sorry since October, no news. Regards Manu
What's your app server and version? e.g. tomcat, jetty, jboss.
My app server is Apache v7
2011-12-21 11:20:00 StartupUtil [INFO] DWR Version 2.0.6 starting. 2011-12-21 11:20:00 StartupUtil [INFO] - Servlet Engine: Apache Tomcat/6.0.29 2011-12-21 11:20:00 StartupUtil [INFO] - Java Version: 1.6.0_21
Cause of the Exception in IE: In IE, IE9 in my case but consider all IE versions, the content in an iframe tag is given a lower level of trust by default, and cookies in the iframe are treated as 3-party contents and are blocked if no "Privacy Policy" info found. So no cookies allowed, and no session identifiers sent in this case. Solutions: 1. add "localhost" and/or "127.0.0.1" to the "Trusted Sites" list in "Internet Options" -> "Security" tab. 2. Adjust the privacy settings bar to a level below Medium in "Internet Options" -> "Privacy" tab. I've tested with solutions 1 and 2 in IE9, no exception thrown. 3. Provide privacy policy info for the server site (localhost:8080 in this case). Please refer to the W3C page http://www.w3.org/P3P/details.html.
Hello, adding the site to the trusted sites works. Thanks Manu
Have to add the site to your trusted site.