google-code-export / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Internet Explorer raises js error when clicking 'ok' on disabled field #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to demo site http://electronicholas.com/calendar with IE 6
2. Click on "other features" tab
3. Click on calendar image close to "disabled" textfield
4. Click on "OK" in the calendar
IE displays an error in status bar

The error comes from calendar_date_select.js, line 420 : IE does not allow
to focus on a disabled input.

Quick fix : replace line 420 with :
    if (this.target_element.type!="hidden" &&
!this.target_element.disabled) this.target_element.focus();

Regards,
Bruno

Original issue reported on code.google.com by bruno.ho...@gmail.com on 18 Aug 2008 at 7:43

GoogleCodeExporter commented 9 years ago
I was about to post this exact same problem/solution.  It's an easy fix that 
should
be incorporated into the project.

Original comment by allan...@gmail.com on 16 Sep 2008 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by timchar...@gmail.com on 30 Nov 2008 at 8:22