Tom Mollerus' Projects: Calendar CFC

Calendar CFC displays a small calendar where individual days, weeks, or months can be selected (as opposed to CFCALENDAR, where only individual days can be selected). Previous and next months can be refreshed in place via AJAX. Requires ColdFusion 8 (for plain CFC return format and for implicit struct creation).

< August 2008 >
S M T W T F S
W 27 28 29 30 31 1 2
W 3 4 5 6 7 8 9
W 10 11 12 13 14 15 16
W 17 18 19 20 21 22 23
W 24 25 26 27 28 29 30
W 31 1 2 3 4 5 6
Start date: End date:

The calendar is called like so (replace the variable names in brackets with your own appropriate values):

<cfoutput>#CreateObject('component', 'calendar').display(
	name='date', 
	year=[FORM.year], 
	month=[FORM.month], 
	day=[FORM.day])#
</cfoutput>

Download the code.