0

ZK5 + IE onClick events

asked 2010-08-02 11:42:58 +0800

mosbilisim gravatar image mosbilisim
12 1

Hi,

I've a problem about ZK5 on IE browser. "onClick" event is not working on IE and the is no problem with Firefox. For example Button "onDoubleClick" and "onRightClick" works but "onClick" not works on IE.
My example code is below:

<window id="menuWindow" border="normal">
<button label='Alert' onClick="lbl.value = "1"" />
<label id="lbl" />
</window>

Thanks.

delete flag offensive retag edit

24 Replies

Sort by ยป oldest newest

answered 2010-08-02 12:54:51 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Worked fine for me running IE 8.0.6001.18702 and ZK 5.0.3 via the ZK Explorer

link publish delete flag offensive edit

answered 2010-08-02 14:09:20 +0800

twiegand gravatar image twiegand
1807 3

Mosbilisim,

Works for me too on IE 7 and ZK 5.0.3. Perhaps some security settings in your IE are the culprit?

Todd

link publish delete flag offensive edit

answered 2010-08-02 21:50:47 +0800

samchuang gravatar image samchuang
4084 4

Hi

I test on IE8, it also work for me

<zk>
	<window id="menuWindow" border="normal">
		<button label='onClick' onClick='lbl.value = "Clicked"' />
		<label id="lbl" />
		<button label='onDoubleClick' onDoubleClick='lb2.value="Double Clicked"'/>
		<label id="lb2" />
		<button label='onRightClick' onRightClick='lb3.value="Right Clicked"'/>
		<label id="lb3" />
	</window>
</zk>

link publish delete flag offensive edit

answered 2010-08-09 07:32:14 +0800

mosbilisim gravatar image mosbilisim
12 1

hi sam,
that code not works on my IE. I tested on other machines and there is same problem. "onDoubleClick" and "onRightClick" are OK but "onClick" not works.
By the way I run IE in default settings and on ZKExplorer the is no problem. I think the reason is my Tomcat.

Thanks.
Ziya

link publish delete flag offensive edit

answered 2010-08-09 19:44:41 +0800

samchuang gravatar image samchuang
4084 4

Hi

ZK demo is ok, but not your project, that's very strange, I really don't have any idea about this.

Hope you could find the reason and share with us.

link publish delete flag offensive edit

answered 2010-08-10 12:02:22 +0800

mosbilisim gravatar image mosbilisim
12 1

updated 2010-08-10 12:04:04 +0800

Hi,

When I use ZK 3.6.4 jars there is no problem, but when I copy ZK 5.0.3 jars to same project the problem occurs.

And on glassfish and jboss 6, problem occurs again.

Thanks.

link publish delete flag offensive edit

answered 2010-08-10 19:48:41 +0800

samchuang gravatar image samchuang
4084 4

Hi

How about the ZK Demo 5.0.3 on tomcat ? is't work ?

link publish delete flag offensive edit

answered 2010-08-11 07:02:24 +0800

mosbilisim gravatar image mosbilisim
12 1

Hi Sam,
ZK Demo 5.0.3 not works on Tomcat + IE.
I can't click "View Source" and "Pure java" tabs,
"Various Form", "Form with Popup"... listitems and
"Layout and Windows", "Layout and Windows" ,,, buttons.

Just stuck on "Creating Window: Hello World" page.

link publish delete flag offensive edit

answered 2010-08-11 19:42:55 +0800

samchuang gravatar image samchuang
4084 4

updated 2010-08-11 19:44:26 +0800

Hi

the ZK demo, is it install on your computer, on the tomcat ? or the ZK Demo online ?

I haven't had your problem before.

What OS do you use, what tomcat version do you use ?

or, as @twiegand mentioned, maybe the IE has some security settings ?

link publish delete flag offensive edit

answered 2010-08-17 01:35:10 +0800

parisaki gravatar image parisaki
15

I use ZK 5.0.2. And all the button OnClick event doesn't work at all on IE8. What should I do? Should I change the zk stack with another one?

It will waste my development time, I mean, the time I already spent. Please help me. On IE8, OnClick event never work as well as button styles.

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: 2010-08-02 11:42:58 +0800

Seen: 1,602 times

Last updated: Jan 09 '11

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