0

Iframe problem with Mozilla after migration to ZK 3.6.1

asked 2009-05-25 08:00:29 +0800

Emanuele gravatar image Emanuele
117 1

Hi to everyone!

I have just migrated my application to ZK 3.6.1 (previous version used was 3.5.2).

In my application I have a window which shows, inside an iframe component, a pdf file dinamically created. This is the code:

<window width="90%" height="90%" mode="modal" border="normal" closable="true">

	<zscript>
		<![CDATA[
		void load(){
			
			// gets the outputstream
			java.io.ByteArrayOutputStream os = ...
			
			byte[] bcontent = os.toByteArray();

			// close outputstream
			os.close();

			org.zkoss.util.media.AMedia media = new org.zkoss.util.media.AMedia("myfolder", "pdf", "application/pdf", bcontent);
			
			iframe.setContent(media);
		}
		]]>
	</zscript>
	<iframe id="iframe" width="100%" height="100%">
		<attribute name="onCreate">
			Clients.showBusy("Loading...", true);
			Events.echoEvent("onLater", self, null);
		</attribute>
		<attribute name="onLater">
			Thread.sleep(2000);
			Clients.showBusy(null, false);
			load();
		</attribute>
	</iframe>
</window>


Before having done migration, it worked well, using IE7 and Mozilla 3.0.10. After migration to ZK 3.6.1, it continues to work well with IE7, but using Mozilla 3.0.10 a blank frame is shown.

Has any of you faced this problem? Solutions?

Thanks
Emanuele

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-05-26 15:20:44 +0800

Emanuele gravatar image Emanuele
117 1

Do you think it's a bug of the new version (ZK 3.6.1)?

link publish delete flag offensive edit
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-05-25 08:00:29 +0800

Seen: 346 times

Last updated: Jun 18 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More