[Tickets #963] NEW: Calendar popup doesn't work in Safari (the OS X browser)

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Dec 9 09:02:52 PST 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=963
-----------------------------------------------------------------------
 Ticket     | 963
 Created By | rwallace at thewallacepack.net
 Summary    | Calendar popup doesn't work in Safari (the OS X browser)
 Queue      | Horde Base
 Version    | HEAD
 State      | Unconfirmed
 Priority   | 2. Medium
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


rwallace at thewallacepack.net (2004-12-09 09:02) wrote:

I have a problem with the calendar popup that is in
horde/templates/javascript/open_calendar.js.  The calendar displays properly
when opened, but when you try and select a date it fails and sends you to
the URL of the link (so like http://mydomain.com/horde/kronolith/1) rather
than updating the form elements.

I did some digging and it looks like this is because the anonymous onclick
function is using variables defined in the openGoto() function in which it
is created, and in Safari those variables are out of scope.  So, in the day
onclick function the target, month, day and year variables are all out of
scope so these lines 

document.getElementById(target + '[month]').value = month + 1;
document.getElementById(target + '[day]').value = day;
document.getElementById(target + '[year]').value = year;

fail, the return false is never reached and the user is sent to an invalid
URL.





More information about the bugs mailing list