0

IE and ZK Calendar onclick stops working

asked 2010-07-29 12:10:29 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi,
maybe this is an issue with IE. I have ZK Calendar 1.0 and I have changed the event renderer, so the event div has a title attribute, e.g.:

<div title="Some more info about the event." z.ed="1280396700000" z.bd="1280394000000" z.zclass="z-calevent" class="z-calevent" z.type="Calevent" id="z_r4_88" style="top: 460px; width: 100%; left: 0%;">...

However, clicking such event is not possible in IE (IE8) when the tooltip "Some more info about the event." is shown. (The tooltip show just after a very small delay, so it is almost impossible to click the event). I have tried to debug the javascript, and the onclick event is not fired. I have tried manually add my own onclick event, and it was not fired, too. So I guess some IE issue.

Since I am not very strong with Javascript, I would like to ask I somebody has a clue, what might be wrong.

Thanks very much
Andy

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2010-08-02 04:09:06 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hmm, I think I got the problem. The "onclick" event in the IE has not stopped working, just the IE is more sensitive to the the mouse move, if the tooltip is shown. So the user mouse has to be very still when clicking the calendar event to succeed. Because the IE does not behave like that in other parts of my app except in the ZK Calendar, I guess it might be caused by some other event handlers (deag&drop). For now, I am just removing all "title" from my HTML. Maybe I'll try to research and fix the problem later.

link publish delete flag offensive edit

answered 2010-08-02 05:36:38 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi xmedeko
What version of ZK do you use?
we have fixed this problem before

link publish delete flag offensive edit

answered 2010-08-02 07:04:10 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

ZK Calendar 1.0, ZK 3.6.4

link publish delete flag offensive edit

answered 2010-08-05 21:19:45 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

You can try put the title in DL

<dl title="Some more info about the event." id="z_sc_0i!inner">

I not find where the problem is.
it will fire if you put the title in DL

link publish delete flag offensive edit

answered 2010-08-06 06:53:16 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi Jimmi,
thanks for your help, but even when I put the title to the <dl> element I've got the same problem. Sometimes, the onclick start to work in IE8 as expected. Or, at least almost as expected (4 from 5 clicks got fired) E.g. opening a new browser tab (just an empty tab) seems to cure the problem :-) So i guess it might be some hidden IE bug.

link publish delete flag offensive edit

answered 2010-12-07 04:06:37 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

updated 2010-12-07 04:07:17 +0800

Hi Jimmi,
FYI this patch http://www.zkoss.org/forum/listComment/13506 has solved this issue, too. I can now make a HTML title for ZK Calendar 1.0 events even in IE.

link publish delete flag offensive edit

answered 2010-12-08 18:00:12 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

good!!!

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-07-29 12:10:29 +0800

Seen: 661 times

Last updated: Dec 08 '10

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