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" }%
|
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'); |
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" }); .... } |
| Author: | TWiki:Main.CrawfordCurrie |
| Copyright: | © See the Mishoo documentation for Mishoo JSCalendar © 2007-2018 TWiki:TWiki.TWikiContributor |
| License: | GPL (GNU General Public License |
| Dependencies: | None |
| Version: | 2018-07-05 |
| Change History: | |
| 2018-07-05: | TWikibug:Item7841 |
| 2016-01-08: | TWikibug:Item7708 |
| 2015-05-27: | TWikibug:Item7604 |
| 2012-12-12: | TWikibug:Item7077 |
| 2012-12-08: | TWikibug:Item6962 |
| 2012-08-11: | TWikibug:Item6837 |
| 2011-07-08: | TWikibug:Item6725 |
| 2010-12-03: | TWikibug:Item6609date form field type defined in this contrib -- TWiki:Main.PeterThoeny |
| 2010-11-17: | TWikibug:Item6530 |
| 2010-11-04: | TWikibug:Item6603 |
| 2010-05-16: | TWikibug:Item6433 |
| 2009-04-27 | TWikibug:Item6254 |
| 2008-09-10 | TWikibug:Item5991 |
| 2007-09-06 | TWikibug:Item4030 |
| 13603 | TWikibug:Item2982 |
| 11594 | Allow format to be configured. |
| 11415 | Add a renderFormFieldForEditHandler so other plugins can forward to this handler to add the date field to the TWikiForms. (TWiki:Main.ThomasWeigert |
| 10247 | TWikibug:Item2054 |
| 6634 | TWikibug:Item453 |
| 6626 | TWikibug:Item468 |
| 5048 | Cairo readiness |
| 5039 | Split from SharedCode |
| 27 Dec 2005 | updated to calendar version 1.0; set style for Safari to win2k-1 |
| 14 Aug 2004 | Separated out from SharedCode module |
| Home: | http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContrib |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/JSCalendarContribAppraisal |
| PackageForm | |
|---|---|
| TopicClassification | ContribPackage |
| TestedOnTWiki | 6.1, 6.0, 5.1, 5.0, 4.3, 4.2, 4.1, 4.0.0, 01 Sep 2004 |
| TestedOnOS | OsLinux |
| ShouldRunOnOS | AnyOS |
| InstalledOnTWikiOrg | No |
| DemoUrl | |
| DevelopedInSVN | Yes |
| ModificationPolicy | PleaseFeelFreeToModify |
| RelatedTopics | DatePickerPlugin |
| I | Attachment | History | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|---|
| |
JSCalendarContrib.md5 | r26 r25 r24 r23 r22 | manage | 0.2 K | 2018-07-06 - 03:58 | PeterThoeny | |
| |
JSCalendarContrib.tgz | r26 r25 r24 r23 r22 | manage | 377.6 K | 2018-07-06 - 03:58 | PeterThoeny | |
| |
JSCalendarContrib.zip | r28 r27 r26 r25 r24 | manage | 448.5 K | 2018-07-06 - 03:58 | PeterThoeny | |
| |
JSCalendarContrib_installer | r12 r11 r10 r9 r8 | manage | 8.4 K | 2018-07-06 - 03:58 | PeterThoeny |