pauladaniel / calendardateselect

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

IE6, clicking on date button results in error #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Prototype 1.6.0.2
2. CalendarDateSelect 1.10.2
3. Embed a calendar on a page (any configuration)
4. View in IE 6, click on one of the date numbers

What is the expected output? What do you see instead?

Expected to select that date. Instead IE6 returns a javascript error
generated by line 341, in the onclick handler for the buttons:

341 var parts = $H(partsOrElement);

IE6 is having trouble turning the object into a hash (technically IE6 is
actually reporting Prototype as the source of the error, but the problem
originates higher up in the call stack).

This problem does not exist in Firefox 2.

Please provide any additional information below.

I managed to get it to work by adding a line in the refreshCalendarGrid
function (see attached diff). This just updates the onclick handler for
each button, as it refreshes them, to pass a simpler object containing just
the date components, instead of the whole cell. With this object, the
onclick handler has no problem converting it into a hash.

Original issue reported on code.google.com by thenonse...@gmail.com on 18 Jun 2008 at 9:13

Attachments: