Multiple date selection
2008/06/15 21:06
Viewed 1998 times
Replies: 0/0

Hi There,

Before I begin, I'd like to extend my thanks to the creator of this awesome bit of open souce code allowing people like me to not have to re-invent the wheel when it comes to enhancing the user friendliness of their sites, cheers!

To business - I've been playing with the pop-up calendar for a while now and what I'd truly like to do is allow the user to make multiple date selections.
Using calendar-setup.js and thanks to the documentation this is fairly straight forward. However, I've been trying to combine this with the prototype window code (http://prototype-window.xilinus.com/) ie set the calendar within a prototype window (essentially a floating div set 'above' the page thanks to its z-index) and to cut a long story short have had no success (more than likely due to my relative inexperience :).
I was able to have it work by calling the calendar via the old manual way (ie calling the calendar constructor within my own javascript function) that preceded the calendar-setup.js way of calling the calendar. The problem comes in when I try to set the calendar to multiple selection mode. Upon closing the calendar I'm not able to output the list of dates that I assume have been stored in the cal.multiple hash/array to the referenced input field or text area.
My question is firstly, is it possible to call a multiple data selection calendar using the manual way of calling the calendar and secondly could someone show me an example of how to do it?
Any and all comments welcome - been tearing my hair out on this one for what seems like ages!

Larry

Google