This sample demonstrates how to create and modify a Calendar.
Instantiate the Calendar into an empty, global object, and add it to the DOM, using the calendarNew method.
Create a Javascript Date object and pass it into the setDate method to set the calendar's start date.
Event Name:
Use the addEvent method to create an event on a given date.
Use the removeEvent method to remove an event by ID.
Selected Date:
Handle the dateClicked event to respond to the user clicking a day on the calendar.
Handle the beforeCreateEvent event to add an event to the calendar when the user double clicks a date.
© 2005 Jonathan Wise. Some rights reserved.