| Height of Report Viewer embedded in iframe [message #990348] |
Wed, 12 December 2012 00:25  |
RealName Mising name Messages: 6 Registered: July 2009 |
Junior Member |
|
|
I have a report embedded into a web page using an iframe.
I'd like to resize the main document to avoid a scrollar in the report viewer.
From what I've found out looking at the Birt jsp pages, the report scripts resize it to accomodate to its container height, adding a scrollbar if needed.
I would like to know when the report has finished rendering. Once it is rendered, I can easily find out its absolute height and let the main document resize to fit.
Is there a way to know when the report has finished rendering? An event I could be listening to?
Other ways of solving this scenario also appreciated.
regards,
Jordi
|
|
|
|
| Re: Height of Report Viewer embedded in iframe [message #990549 is a reply to message #990356] |
Thu, 13 December 2012 00:06   |
RealName Mising name Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Doesn't seem to being called.
I cannot see where the script is sent to the client either.
Is this script really run in the client(in the browser)?
I want to do something like this:
afterRender event script:
parent.updateHeight(document.getElementById("__BIRT_ROOT").scrollHeight);
Main document script:
function updateHeight(birtViewerHeight) {
document.getElementById("birtIframeId").style.height = (birtViewerHeight + 150) + "px";
}
So in effect I am forcing the Birt "Document" not to have scrollbars. I can do this manually with Firebug and it works, but the afterRender event script is not working.
[Updated on: Thu, 13 December 2012 00:09] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05892 seconds