0

Iframe Src Timeout

asked 2012-03-23 11:35:36 +0800

emiweb gravatar image emiweb
12 1

Hi,
in a zul page I have an Iframe and I set his source from composer.

MySrc = http://urlexternal.it
MyFrame.setSrc(MySrc);

How can I set a timeout???
How can see the message if the external site (MySrc) is unreachable?

Thanks.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-04-05 03:42:42 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

This will be difficult. In browser, iframe is like another browser tab window, you can not control one tab from another tab for security reason. If the page loaded into iframe comes from the same server, you might be able to make them communicate to each other on server side. This is not a ZK issue. It is about whether you can communicate from iframe to your "main" page in some way.

link publish delete flag offensive edit

answered 2012-04-05 04:31:56 +0800

rdgrimes gravatar image rdgrimes
735 7

Just a suggestion. But, I don't see why an iFrame would ever be needed with ZK when we have the portallayout option. See http://www.zkoss.org/zkdemo/layout/business_portal .

Ron

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: 2012-03-23 11:35:36 +0800

Seen: 162 times

Last updated: Apr 05 '12

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