> I'll be replacing that with the one Torsten
> emailed about earlier at the first opportunity I get:
> 
> http://www.mattkruse.com/javascript/calendarpopup/
> 

I just gave that a try myself and I ran into a few issues:

- The placement of the <div> popup is not as smart as with
datetimepicker, in my case it was partially outside the browser window.
Could be fixed with CalendarPopup.offsetX/offsetY.

- The tabs of an <s:tabbedPanel> obscured the calendar. Fixed by adding
z-index:2 to the style of the popup <div>

- The month/year navigation would just close the popup. Seems to be an
issue with S2 tags and onmouseup event handlers (described under note 4
in CalendarPopup.js). Worked around by commenting c.autoHide() in
CalendarPopup.js, which means the popup is only closed when picking a
date. Because this is not very userfriendly, I added a small function to
toggle the visibility of the popup when clicking on the anchor,
something like

function toggle() {
  if(document.getElementById("popup").style.visibility == 'visible') {
    cal1.hideCalendar();
  }
  else {
    cal1.select(document.forms[0].dateAsString,'anchor1','yyyy-MM-dd');
  }
}

Now I just have to apply some custom style to the calendarpopup and I
finally got pretty much what I wanted...

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to