From: Matthew B. <mat...@ou...> - 2006-12-22 11:22:51
|
Adam Marshall wrote: > Yuletide greetings Naomi. > > All one does is stick a class="date" or class="datetime" in the date <input> > textbox declaration, then Matthew's whizzy javascript will post process the > page and add a calendar or calendar and time chooser wherever it sees these > classes. This allows for each institution to use their own favourite > datepicker widget, or none at all. The live deploy of WebLearn has a bug in that is doesn't work in Safari (were you using Safari?). This has been fixed in our SVN repository and should be in our December upgrade. > Matthew will tell you where the JS can be found in a moment. Newer versions are in SVN: Calendar code (not mine): https://svn.oucs.ox.ac.uk/projects/vle/weblearn/trunk/tomcatadd/webapps/bodington/calendar.js https://svn.oucs.ox.ac.uk/projects/vle/weblearn/trunk/tomcatadd/webapps/bodington/calendar-en.js https://svn.oucs.ox.ac.uk/projects/vle/weblearn/trunk/tomcatadd/webapps/bodington/calendar.css My decorating code is in: https://svn.oucs.ox.ac.uk/projects/vle/weblearn/trunk/tomcatadd/webapps/bodington/utils.js findCalendars() is called from globalOnLoad() which is set as the onload method for all pages. globalOnLoad() does other things as well. The better way todo this is to create an onload event and then you don't need to edit the onload attribute on each page, but I didn't get around to changing it and we already had the editing widget done through the onload attribute. I've asked sysdev about opening up our SVN to public read (done) so you can just grab a copy of our build and then you should be able to grep for datetime to see which templates you need. -- Matthew Buckett |