<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Calendar popup doesn&#039;t work in Safari (the OS X browser)</title> 
  <pubDate>Thu, 09 Apr 2026 21:37:09 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/963</link> 
  <atom:link rel="self" type="application/rss+xml" title="Calendar popup doesn&#039;t work in Safari (the OS X browser)" href="https://bugs.horde.org/ticket/963/rss" /> 
  <description>Calendar popup doesn&#039;t work in Safari (the OS X browser)</description> 
 
   
   
  <item> 
   <title>I have a problem with the calendar popup that is in horde/te</title> 
   <description>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 + &#039;[month]&#039;).value = month + 1; document.getElementById(target + &#039;[day]&#039;).value = day; document.getElementById(target + &#039;[year]&#039;).value = year;



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

</description> 
   <pubDate>Thu, 09 Dec 2004 17:02:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/963#t3673</link> 
  </item> 
   
  <item> 
   <title>This is a correct analysis, but there is nothing we can do a</title> 
   <description>This is a correct analysis, but there is nothing we can do about this, but turning most javascript features off for KHTML.</description> 
   <pubDate>Thu, 09 Dec 2004 17:28:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/963#t3674</link> 
  </item> 
   
  <item> 
   <title>I suppose the biggest question is whether this is a bug in S</title> 
   <description>I suppose the biggest question is whether this is a bug in Safari or if this is the correct behaviour according to the ECMA standard and other browsers are wrong in the way they implement it.  I&#039;m not an expert with javascript so I have no idea.



Couldn&#039;t we simply add more parameters to the href link in this case to get it working?  Something like 



link.href = &#039;?target=&#039; + target + &#039;&amp;month=&#039; + (month+1) + &#039;&amp;day=&#039; + day + &#039;&amp;year=&#039; + year + &#039;&amp;callback=&#039; + callback;



I don&#039;t know if we&#039;d have to worry about encoding the target or not because I don&#039;t think ? and &amp; are going to be used to name form elements by anyone.  Makes it a little harder to get all the stuff you need out of the URL, but it should work.</description> 
   <pubDate>Thu, 09 Dec 2004 17:51:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/963#t3676</link> 
  </item> 
   
  <item> 
   <title>Actually, we can do something about it, though damned if thi</title> 
   <description>Actually, we can do something about it, though damned if this isn&#039;t a cranky browser combination. Fixed in CVS.</description> 
   <pubDate>Sat, 11 Dec 2004 04:30:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/963#t3687</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
