« Tons of New ColdFusion Content on DevNet | Main | Jeremy Allaire Discusses ColdFusion Past And Present, and What's Next for the Web »

May 07, 2003

DRK 3 Calendar Component Test File

If you have DRK 3, and if you have looked at the calendar ColdFusion component, you might have noticed that the test file called calendarTest.cfm that is referred to in the documentation is missing. We will fix the problem shortly as well as make the file available from Macromedia's website, however in the meantime, it can be downloaded from here:

http://www.markme.com/cantrell/downloads/calendar.zip

The calendar component builds a model of a calendar page given a particular month and year. It returns a two dimensional array which represent the rows and columns of a calendar so that you don't have to worry about months having different numbers of days, starting on different days of the week, leap year, etc. All those calculations are encapsulated in the calendar component. The calendarTest.cfm page demonstrates how to use the component and how to iterate over the array that it returns to build an infinite HTML calendar. Even if you don't have the DRK, you might want to check out the sample file to see how it works.

Posted by cantrell at May 7, 2003 02:52 PM | References

Comments

What also is missing from the DRK3 documentation is the IsEmail function in the ActionScript Data Validation Library.
It's not described in the docs, but is in the .as file :)

Posted by: Jos at May 9, 2003 05:54 AM

It was also a disappointment that the gif that was shown in the DevNet advertisements for the calendar component was not included also.

It would be nice to work with that example.

Posted by: Dave Howard at June 4, 2003 04:36 PM

DRK 3 Calendar Component Test File
The calendar test file references a componient "com.macromedia.util.calendar". Please explain how to create a componient, where should they be located and of course send this component so the calendar will work.
The error returned was component not found.

7 : cal = createObject("component", "com.macromedia.util.calendar");
8 : cal.setDate(url.m, url.y);
9 : rows = cal.getRowNum();

Posted by: Karl at May 14, 2004 08:39 PM