-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4654442
By: odin_83
hi,
i have some trouble about iframe on zk
this is the code:
<window id="win" title="Milky Way - Visualizza report" width="100%" height="100%"
border="normal" closable="true">
<iframe id="ifr" name="ifr" src="./report/test.pdf" width="100%" height="100%"
/>
<zscript>
Iframe a=new Iframe(application.getRealPath("./report/test.pdf"));
a.invalidate();
a.width="100%";
a.height="100%";
a.setParent(win);
</zscript>
</window>
and this is the problem:
in first iframe pdf file appear,but if i change it,there is no refresh(the iframe show me always the same pdf file without changes) in second iframe created in zscript tags,there is nothing.
i have already read about invalidate() function but seems i don't undestand it at all.
please help me
this zul file run under tomcat 5.22 and zk 3 rc i have already tested it with zk 3 stable but don't work
P.S.
the code that call this zul file is:
.....
Window win = (Window) Executions.createComponents(
"viewerrel.zul", null, null);
win.doModal();
....
i hope u undestand me:)
10x
salvatore
Asked: 2007-12-02 14:45:47 +0800
Seen: 376 times
Last updated: Jul 06 '11