Difference: JSCalendarContrib (r19 vs. r18)

JS Calendar Contrib

DEPRECATED pop-up calendar with date picker -- please upgrade to new DatePickerPlugin

Deprecation Notice and Migration

This Mishoo JSCalendar based DHTML pop-up calendar is now repackaged as DatePickerPlugin. Simply installing the TWiki:Plugins.DatePickerPlugin is not enough:

Migrate Popup Calendar in HTML Forms

Please update your content to use the %DATEPICKER{}% variable instead of handcrafted HTML to show a popup calendar.

The old JSCalendarContrib way:
%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
<input type="text" name="start_date" id="cal_val_here" />
<input type="image"
 src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" 
 onclick="javascript:
  return showCalendar('cal_val_here','%Y-%m-%d')" />
   Change to the new DatePickerPlugin way:
%DATEPICKER{ name="start_date" }%

Migrate Plugins using JSCalendarContrib

Please update your plugins to use the new DatePickerPlugin. Example:

The old JSCalendarContrib way:
use TWiki::Contrib::JSCalendarContrib;
...
my $fromDate =
 TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'from', '1 April 1999');
my $toDate =
 TWiki::Contrib::JSCalendarContrib::renderDateForEdit(
   'to', undef, '%Y');
   Change to the new DatePickerPlugin way:
use TWiki::Plugins::DatePickerPlugin;
...
my $fromDate =
 TWiki::Plugins::DatePickerPlugin::renderForEdit(
   'from', '1 April 1999');
my $toDate =
 TWiki::Plugins::DatePickerPlugin::renderForEdit(
   'to', undef, '%Y');

Example using hand-crafted Javascript:

The old JSCalendarContrib way:
use TWiki::Contrib::JSCalendarContrib;
...

sub commonTagsHandler {
  ....
  TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/JSCalendarContrib/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}
   Change to the new DatePickerPlugin way:
use TWiki::Plugins::DatePickerPlugin;
...

sub commonTagsHandler {
  ....
  TWiki::Plugins::DatePickerPlugin::addToHEAD( 'twiki' );

  my $cal = CGI::image_button(
      -name => 'img_datefield',
      -onclick =>
       "return showCalendar('id_datefield','%Y %b %e')",
      -src=> TWiki::Func::getPubUrlPath() . '/' .
             TWiki::Func::getTwikiWebname() .
             '/DatePickerPlugin/img.gif',
      -alt => 'Calendar',
      -align => 'middle' )
    . CGI::textfield(
      { name => 'date', id => "id_datefield" });
  ....
}

Contrib Info

  • Set SHORTDESCRIPTION = DEPRECATED pop-up calendar with date picker -- please upgrade to new DatePickerPlugin
Author: TWiki:Main.CrawfordCurrie http://c-dot.co.uk
Copyright: See the Mishoo documentation for Mishoo JSCalendar
2007-2012 2007-2015 TWiki:TWiki.TWikiContributor for TWiki JSCalendarContrib
License: GPL (GNU General Public License)
Dependencies: None
Version: 2012-12-12 2015-05-27
Change History:  
2012-12-12: 2015-05-27: TWikibug:Item7077 TWikibug:Item7604 : Deprecate this contrib in favor of Switch from GPL v2 to v3 the new DatePickerPlugin -- TWiki:Main.PeterThoeny
2012-12-08: 2012-12-12: TWikibug:Item6962 TWikibug:Item7077 : Configure change: Deprecate this Move contrib settings from top level section in favor of the new to Extensions section -- DatePickerPlugin -- TWiki:Main.PeterThoeny
2012-08-11: 2012-12-08: TWikibug:Item6837 TWikibug:Item6962 : Doc fixes; updated installation instructions Configure change: Move contrib settings from top level section to Extensions section -- TWiki:Main.PeterThoeny
2011-07-08: 2012-08-11: TWikibug:Item6725 TWikibug:Item6837 : Change global package variables from Doc fixes; updated installation instructions "use vars" to "our" -- TWiki:Main.PeterThoeny
2010-12-03: 2011-07-08: TWikibug:Item6609 TWikibug:Item6725 : In Change global package variables from "use vars" to "our" -- TWikiForms type table, automatically list the date form field type defined in this contrib -- TWiki:Main.PeterThoeny
2010-11-17: 2010-12-03: TWikibug:Item6530 TWikibug:Item6609 : Doc In fixes: Changing TWIKIWEB to SYSTEMWEB TWikiForms type table, automatically list the date form field type defined in this contrib -- TWiki:Main.PeterThoeny
2010-11-04: 2010-11-17: TWikibug:Item6603 TWikibug:Item6530 : Add transparent image for nicer date Doc fixes: Changing TWIKIWEB to SYSTEMWEB button in TWiki Forms
2010-05-16: 2010-11-04: TWikibug:Item6433 TWikibug:Item6603 : Doc improvements Add transparent image for nicer date button in TWiki Forms
2009-04-27 2010-05-16: TWikibug:Item6254 TWikibug:Item6433 Adding "JSCalendarContrib Settings" : Doc improvements section to configure; changing default to ISO date format; improved documentation ( TWiki:Main/PeterThoeny )
2008-09-10 2009-04-27 TWikibug:Item5991 TWikibug:Item6254 Applied patch Adding "JSCalendarContrib Settings" section to fix rendering on IE7 configure; changing default to ISO date format; improved documentation ( TWiki:Main/PeterThoeny )
2007-09-06 2008-09-10 TWikibug:Item4030 TWikibug:Item5991 Added doc for using the calendar in Applied patch to fix rendering on IE7 user forms
13603 2007-09-06 TWikibug:Item2982 TWikibug:Item4030 cleaned up Added doc for using the interface to the contrib, calendar in user forms re-added a date rendering function with a more generic interface
11594 13603 Allow format to be configured. TWikibug:Item2982 cleaned up the interface to the contrib, re-added a date rendering function with a more generic interface
11415 11594 Add a Allow format to be configured. renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms . (TWiki:Main.ThomasWeigert )
10247 11415 TWikibug:Item2054 Add a put the calendar at z-index 2000, way above pattern skin divs. renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms . (TWiki:Main.ThomasWeigert )
6634 10247 TWikibug:Item453 TWikibug:Item2054 removed put the calendar at z-index 2000, way above pattern skin divs. EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib . Improved the documentation of the JSCalendar while I was there.
6626 6634 TWikibug:Item468 TWikibug:Item453 updated removed docs for Dakar release EditTablePlugins private copy of the Mishoo JS calendar, and made sure it works with JSCalendarContrib . Improved the documentation of the JSCalendar while I was there.
5048 6626 Cairo readiness TWikibug:Item468 updated docs for Dakar release
5039 5048 Split from Cairo readiness SharedCode
27 5039 Dec 2005 updated to calendar Split from SharedCode version 1.0; set style for Safari to win2k-1
14 Aug 2004 27 Dec 2005 Separated out from SharedCode module updated to calendar version 1.0; set style for Safari to win2k-1
Home: 14 Aug 2004 http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib Separated out from SharedCode module
Feedback: Home: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib
Appraisal: Feedback: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal

Related Topics: DatePickerPlugin, VarDATEPICKER, JSCalendarContribInline, TWikiPreferences, TWikiForms

IAttachmentHistoryActionSizeDateWhoComment
Unknown file formatEXTChangeLog r1 manage 24.5 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Unknown file formatEXTREADME r1 manage 0.9 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlbugtest-hidden-selects.html r1 manage 3.9 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-blue.css r1 manage 4.7 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-blue2.css r1 manage 4.9 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-brown.css r1 manage 4.6 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-green.css r1 manage 4.7 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
JavaScriptjscalendar-setup.js r1 manage 8.6 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
JavaScriptjscalendar-setup_stripped.js r1 manage 4.8 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-system.css r1 manage 5.6 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-tas.css r1 manage 5.2 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-win2k-1.css r1 manage 5.8 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-win2k-2.css r1 manage 5.8 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-win2k-cold-1.css r1 manage 5.6 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Cascading Style Sheet filecsscalendar-win2k-cold-2.css r1 manage 5.8 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
JavaScriptjscalendar.js r1 manage 48.4 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Unknown file formatphpcalendar.php r1 manage 4.4 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
JavaScriptjscalendar_stripped.js r1 manage 33.5 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmldayinfo.html r1 manage 3.0 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
GIFgifimg.gif r1 manage 0.3 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlindex.html r1 manage 12.4 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
GIFgifmenuarrow.gif r1 manage 0.1 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
GIFgifmenuarrow2.gif r1 manage 0.1 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlmultiple-dates.html r1 manage 2.9 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlrelease-notes.html r1 manage 18.0 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
PNGpngscreenshot-small.png r1 manage 21.8 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
PNGpngscreenshot.png r1 manage 20.4 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlsimple-1.html r1 manage 9.2 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlsimple-2.html r1 manage 3.7 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmlsimple-3.html r1 manage 4.4 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
HTMLhtmltest-position.html r1 manage 1.5 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
Unknown file formatphptest.php r1 manage 3.2 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script
JavaScriptjstwiki.js r1 manage 0.6 K 2015-05-28 - 06:05TWikiAdminUser Saved by install script

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.JSCalendarContrib.