Tags:
create new tag
, view all tags

JSCalendar Add-On

The JSCalendarAddOn allows the javascript calendar from JSCalendarContrib to be used for any form. It also supports the use of the contrib from EditTablePlugin. Credit goes to TWiki:Main.ColasNahaboo (whose TWiki:Codev.JavaScriptDatePickerForForm I modified slightly) and TWiki:Main.CrawfordCurrie (who packaged JSCalendarContrib).

Usage

  • Install the add-on
  • You may modify date format, language, or other options used in the calendar by setting the preference variables JSCALENDARDATEFORMAT, JSCALENDARLANGUAGE, and JSCALENDAROPTIONS as discussed in the documentation included in JSCalendarContrib
  • A patch to lib/TWiki/Plugins/EditTablePlugin.pm is attached also which makes EditTablePlugin depend on JSCalendarContrib rather than duplicating this functionality.

Add-On Installation Instructions

Note: You do not need to install anything on the browser to use this add-on. The following instructions are for the administrator who installs the add-on on the server where TWiki is running.

  • Download the patch file from the Add-on Home (see below)
  • Patch the following files with JSCalendarAddOn.patch in your twiki installation directory. Content:
    File: Description:
    lib/TWiki/Form.pm  
    lib/TWiki/UI/Edit.pm  
    lib/TWiki/UI/View.pm  
  • Test if the installation was successful:
    • Create a form with a date field. A popup calendar should appear.

Add-On Info

Add-on Author: TWiki:Main/ThomasWeigert
Add-on Version: 07 Feb 2005 (v1.000)
Change History:  
07 Feb 2005: Initial version
CPAN Dependencies: none
Other Dependencies: JSCalendarContrib
Perl Version: 5.005
License: GPL
Add-on Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarAddOn
Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarAddOnDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarAddOnAppraisal

Related Topic: DateFieldPlugin

-- TWiki:Main/ThomasWeigert - 07 Feb 2005

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatpatch EditTablePlugin.patch manage 4.4 K 2005-02-07 - 03:24 ThomasWeigert  
Unknown file formatpatch JSCalendarAddon.patch manage 4.7 K 2005-02-07 - 03:24 ThomasWeigert  
Topic revision: r3 - 2005-02-13 - ThomasWeigert
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.