Problem with include, jquery and Internet explorer

asked 2010-03-05 03:04:00 +0800

aruggiero gravatar image aruggiero

updated 2010-03-05 03:04:31 +0800

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");

The in my xxx.zul i have this

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/interface.js"></script>

<script type="text/javascript">


I don't understant because all works fine if i use firefox, but if i use internet explorer the script seems not be loaded, in this case it works only if a load a single page. If i load it with Include it is not working

Firefox works all good
IE works only in a single page and not with include element

I use ZK 5.0

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2010-03-05 06:00:39 +0800

romen gravatar image romen
33 1 3

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


link publish delete flag offensive edit

answered 2010-03-05 06:33:40 +0800

aruggiero gravatar image aruggiero

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


                  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

link publish delete flag offensive edit

answered 2010-03-07 18:29:16 +0800

samchuang gravatar image samchuang
4084 4


Have you try to use

<?script src="jquery.js" ?>

by the way, you could use jquery in ZK5, do you need to use different version of jquery ?

link publish delete flag offensive edit

answered 2010-03-08 09:17:26 +0800

aruggiero gravatar image aruggiero

Thanx for reply, using jquery included in ZK5 it works very well, so the problem was in the import, i removed it

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




Asked: 2010-03-05 03:04:00 +0800

Seen: 783 times

Last updated: Mar 08 '10

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