Problem with include, jquery and Internet explorer

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

aruggiero
21

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

function()

......


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 retag edit

4 Replies

Sort by » oldest newest

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

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
ss.setMode("defer");
?

cheers
romen

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

aruggiero
21

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

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

samchuang
4084 4

Hi

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 ?

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

aruggiero
21

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

[hide preview]

Stats

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

Seen: 783 times

Last updated: Mar 08 '10

Related questions

Support Options
• Email Support
• Training
• Consulting
• Outsourcing