Prev | Next | mainResponder Verbs > mainResponder.calendar > getLinks |
mainResponder.calendar.getLinks
Syntax |
mainResponder.calendar.getLinks (adrcal, theDate, url, starttime)
|
Params |
adrcal is the address of a calendar in the database. theDate is a valid date. url is a string used for constructing links to calendar entries. starttime is the date corresponding to the first entry for which a link can be generated. Default: mainResponder.calendar.getFirstDay(adrcal).
|
Action |
Construct next month and previous month links relative to the date given by theDate.
|
Returns |
A string of HTML code containing links to the next and previous month.
|
Examples |
mainResponder.calendar.getLinks (@scriptingNews, clock.now (), "http://localhost/") » "<center><font size=\"-2\"><b>\r\t<a href=\"http://localhost/1999/03/12\"<Mar</a>\r\t \r\tApr\r\t</b></font></center>\r"
|
Errors |
If adrcalendar does not point to a valid non-empty calendar structure, an error message is generated.
|
Notes |
The generated links are meant to be used in connection with a calendar structure rendered as HTML by mainResponder.calendar.draw. It's safe for the calendar structure to contain non-numeric entries (e.g.#directives). Detailed information about mainResponder's calendar format is available from the Frontier Site.
|
See Also |
mainResponder.calendar.getFirstDay
|
Prev | Next | mainResponder Verbs > mainResponder.calendar > getLinks |