[Tickets #3705] NEW: Show/Hide Javascript Malfunction
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Mar 28 10:44:30 PST 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3705
-----------------------------------------------------------------------
Ticket | 3705
Created By | nchanda at tachometry.com
Summary | Show/Hide Javascript Malfunction
Queue | Kronolith
Version | HEAD
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
+New Attachment | cal_showhide_checkbox.patch.txt
-----------------------------------------------------------------------
nchanda at tachometry.com (2006-03-28 10:44) wrote:
The submitted patch modifies the show / hide checkboxes to use the onClick
event trigger instead of the onChange event. Implementation of this patch
creates consistant cross-browser functionality.
The showHide javascript function in calendars.inc is called by the onChange
event handler when the checkbox is clicked. Firefox works well, submitting
the form upon mouse up. IE does not register the event until focus is
removed from the checkbox by clicking (or tabbing) to another location on
the page.
W3C recommends that the onChange event should only be triggered when the
element looses focus, meaning that IE has actually implemented this
correctly. While not as descriptive, the onCLick event should be used
instead.
Here is the W3C statement on the onChange event:
http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-onchange
More information about the bugs
mailing list