[development] exclusive date selection

Ken Yiem kenuck at gmail.com
Wed Jan 19 04:51:49 UTC 2011

Hi Kate,

You could use the Jquery datepicker to display your calendar.
- print out an array of booked dates
- when calling datepicker, pass in the parameter "beforeShowDay" that
takes in a function  ie.
                beforeShow: customRange,
                changeMonth: true,
                changeYear: true,
                beforeShowDay: reservedDays

where "reservedDays" will cycle through your array and return true for
false to enable/disable the date.

To see it in action , check out http://vancouver.rlisting.com/
- you'll need to register and then create a listing
- then add bookings.


On Tue, Jan 18, 2011 at 6:42 PM, Kate Pojeta <kp at lansingit.com> wrote:
> We are working on a site where the client wants visitors to be able to request an event date (using calendar + date), but only be able to choose from dates that haven't been booked already. Ideally, the submitting visitor would see available dates on a calendar when filling out the node, or the unavailable dates would be grayed out, etc.... Any experience with this or recommendations?
> Thank you -
> Kate Pojeta
> Lansing iT
> kp at lansingit.com

Golf's three ugliest words: still your shot.
    ~ Dave Marr

More information about the development mailing list