-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all.
I have a problem with a zul page ( in internet explorer ) and a jquery script. Here is my code..
Include ss = (Include) comp.getFellow("splash"); ss.setSrc("models/xxx.zul");
The in my xxx.zul i have this
<html> <![CDATA[ <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/interface.js"></script> <script type="text/javascript"> $(document).ready( function() ......
Firefox works all good
IE works only in a single page and not with include element
I use ZK 5.0
I think there is a bug in Include in ZK5.
I found that if I include a static file (e.g. html) it works. But if I include .zul file I got blank.
The way to fix it is to inc.setMode("defer");
Have you tried
ss.setMode("defer");
?
cheers
romen
Than for the reply.
I already try the "defer" mode, but in the zul file like this
<script type="text/javascript" defer="defer">
but it is working partially. I included this in my function
function() { document.write("Example text"); ...............
and it is executed ( in IE and in firefox ) , but the rest of the function is not executed, only in Internet explorer, in firefox works well. Also i tried "document.write" in the bottom of the function and in IE it is not working again.
I tried also your solution and is is not working, also in Firefox i have some problem..
I think this is some kind of bug too
Asked: 2010-03-05 03:04:00 +0800
Seen: 783 times
Last updated: Mar 08 '10