Accessible date picker calendar [beta]
Author: 16th December 2005updated:
Created for an intranet meeting room booking system replacing an inaccessible version.
Update: I wanted to declare 31st of March as national no meetings day but apparently the rest of the world disagreed. Consequently the calendar now includes the date.
Clicking a link calls the same page (index.php4) passing the date request via the URL.
For example: index.php4?strDate=31/10/2005.
Both the file name and the server variable are easily changed.
The original script was chosen because there is a PHP and an ASP version available too.
I'm currently unsure of the validity of placing a form in a noscript element.
Full testing, cross browser / cross platform, commences this week and will include a Jaws screen reader evaluation.
All visual styling is done via the CSS.
Note the "skip link" is moved off screen.
The small functions
The "back a month" and "forward a month" functions are a little complex due to a check to insure the date remains valid.
Initialise the calendar function
Display the calendar table head
The month of days loop
Display the calendar table foot