JavaScript Library Example

This JavaScript library example shows the use of the Calendar library. The first calendar is a one-month example of the schedule feature, with much of the event detail hidden by CSS rules. The second example is several months as a calendar (no events).

<%
	Set oSchedule = New Calendar
	oSchedule.Database = "\access_db\calendar.mdb"
	oSchedule.Starts = DateSerial(2008, 1, 1)
	oSchedule.Ends = DateSerial(2008, 1, 31)
	Response.Write oSchedule.Schedule
	Set oSchedule = Nothing
%>
					
January
 1
01-JAN-08 at 11:00 - 01-JAN-08 at 13:00

New Year's Lunch

Join us for a New Year's Day lunch and start the new year off right!

2345
6789101112
13141516171819
2021
21-JAN-08 at 07:00 - 21-JAN-08 at 09:00

MLK Prayer Breakfast

21-JAN-08 at 11:00 - 21-JAN-08 at 13:00

Parade

Join us for a civil rights parade

2223242526
2728293031 
January
 12345
6789101112
13141516171819
20212223242526
2728293031 
February
 12
3456789
10111213141516
17181920212223
242526272829 
March
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
April
 12345
6789101112
13141516171819
20212223242526
27282930 
<%
	Set oCalendar = New Calendar
	oCalendar.Starts = DateSerial(2008, 1, 1)
	oCalendar.Ends = DateSerial(2008, 4, 30)
	Response.Write oCalendar.Html
	Set oCalendar = Nothing
%>

<style type="text/css">
	table.calendar {
		border:1px solid #000;
		font-family:Verdana;
	}
	table.calendar caption {
		font-weight:bold;
		text-align:center;
	}
	table.calendar tr td {
		border:1px solid #666;
		cursor:default;
		font-size:.7em;
		height:3em;
		text-align:right;
		vertical-align:top;
		width:3em;
	}
	table.calendar tr td.weekend {
		background-color:#ccc;
	}
	table.calendar tr td.weekday {
		background-color:#fff;
	}
	table.calendar tr td.holiday {
		font-weight:bold;
	}
	table.calendar tr td.religious {
		color:#f00;
	}
</style>