docServerUserLandCom picture
Contents
Frontier Site

mainResponder.calendar.draw

Syntax mainResponder.calendar.draw (adrcalendar, urlprefix, colwidth, rowheight, tableborder, bgcolor, monthYearTemplate, dayNameTemplate, dayTemplate, curdate, urldelimiter)

Params adrcalendar is the address of a calendar in the database. Default: nil.

urlprefix is a string which is used in constructing the URLs that each day points to. Default: "".

colwidth is the width, in pixels, of a calendar column. Default: 32.

rowheight is the height, in pixels, of a calendar row. Default: 22.

tableborder is the border attribute for the <table> to be generated. Default: 0.

bgcolor is the background color for each cell of the <table>. If no background color is desired set this to nil. Default: nil.

monthYearTemplate is the string of text that will enclose the month and year in the calendar display. The month and year will replace the three asterisks. Default: "<font size=\"+2" face="helvetica,arial" color="black"><b><center>***</center></b></font>".

dayNameTemplate is the string of text that will enclose each day name in the rendered table. Default: "<font size=\"-1" color="gray"><center>****</center></font>".

dayTemplate is the string of text that will enclose each day number. Default: "<font size=\"+0" color="black"><center><b>****</b></center></font>".

curdate is a date which determines which month will be displayed and which day will be highlighted in the display by making it <b>bold</b>. Default: clock.now ().

urldelimiter is a string which is used as the day-month-year delimiter in the constructed links. Default: "/"

Action Generates a HTML table representing a month which is part of a mainResponder calendar structure.

Returns A string, the HTML table representing the given month.

Notes Detailed information about mainResponder's calendar format is available at http://frontier.userland.com/stories/storyReader$256

See Also mainResponder.calendar.getMostRecentDay


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.