This is a message.

Bug with Always On Calendar Created Jun 5, 2010

This thread is solved

Views: 1399     Replies: 3     Last reply Jul 22, 2010  
You must login first before you can use this feature

enminc
~Adam

Posts: 7

Registered:
May 7, 2010

Bug with Always On Calendar

Posted: Jun 5, 2010

There appears to be a focus issue with the always on calendar setup. I have been able to reproduce this even on the tools demo page.

The result of the bug appears to be some type of focus issue which forces the user to click twice. I first thought I was being forced to click a hyperlink twice but in fact you just need to click anywhere and then click your desired link which is telling me it is some sort of focus issue.

To reproduce issue:

Go to: http://flowplayer.org/tools/demos/dateinput/static.html

Try a link in the right nav and you should find that it appears to not work. Click again and it does. Now refresh (you should note the calendar blue box with current date is also now empty) click anywhere on the screen (page background would be best for this example) now try same nav link again, this time it works first time.

Now remove calendar from page all together. Load page and try same nav link. This time it works right the first time.

Something else I noticed if it helps.

If you do a "alert(document.activeElement);" after the initial phantom click that appears to do nothing the anchor that was clicked is shown as being active element however the href assigned to that anchor was never triggered.

example:
<a id="link" href="%somewhere%">somewhere</a>

first click:

alert(document.activeElement.id);

result: link

So to me it appears that the focus is getting moved to the anchor but because of whatever is going on the hyperlink is not triggered.

I have been able to reproduce all of this on FF 3.6.3 & IE on both the demo page as well as my own location where I am installing.

enminc
~Adam

Posts: 7

Registered:
May 7, 2010

» Bug with Always On Calendar

Posted: Jun 11, 2010

Reply to: Bug with Always On Calendar, from enminc
Tero I am super surprised you have not replied to this issue since it is on the demo as well. Maybe it got missed after a weekend off or maybe duplicated and existing request if so I looked and sorry if I did. Would really like your take on this and hope my reply puts me back at the top of the heap.

revolution42

Posts: 1

Registered:
Jul 5, 2010

» » Bug with Always On Calendar

Posted: Jul 5, 2010

Reply to: » Bug with Always On Calendar, from enminc
This is a problem with the init of the date. Removing this fixes the problem, but hides the calendar. A quick fix is either to follow all href tags or just put a $(body).click() after the init. Its not pretty but it will work until a proper fix is implemented


onHide: function()  {
		return false; 
	},

I have made an issue herehttp://github.com/jquerytools/jquerytools/issues/issue/105

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1868

Registered:
Nov 16, 2007

» Bug with Always On Calendar

Posted: Jul 22, 2010

Reply to: Bug with Always On Calendar, from enminc
this is now fixed and will be out in 1.2.4. Here are the patches:

http://github.com/jquerytools/jquerytools/commit/36bb9f1492631bc32b8bb6a634eb7a5951a99df3

http://github.com/jquerytools/www/commit/912eaa71f4e76a1c23dab917ed81feb4d378953d