| <<O>> Difference Topic JSCalendarContrib (18 - 2012-12-13 - TWikiContributor) |
| Line: 1 to 1 | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JS Calendar Contrib | |||||||||||||||||||
| Added: | |||||||||||||||||||
| > > | |||||||||||||||||||
| Changed: | |||||||||||||||||||
| < < | |||||||||||||||||||
| > > | |||||||||||||||||||
| Changed: | |||||||||||||||||||
| < < | ![]() | ||||||||||||||||||
| > > |
| ||||||||||||||||||
DEPRECATED pop-up calendar with date picker -- please upgrade to new DatePickerPlugin
IntroductionThis module packages the Mishoo JSCalendar | |||||||||||||||||||
| Added: | |||||||||||||||||||
| > > | Using the Calendar in TWikiFormsThis package adds adate type to TWikiForms:
| ||||||||||||||||||
Using the Calendar in user formsYou can also use the calendar directly in your own hand-built forms, without | |||||||||||||||||||
| Line: 181 to 195 | |||||||||||||||||||
| |||||||||||||||||||
| Changed: | |||||||||||||||||||
| < < |
| ||||||||||||||||||
| > > |
| ||||||||||||||||||
| |||||||||||||||||||
| Changed: | |||||||||||||||||||
| < < |
| ||||||||||||||||||
| > > |
| ||||||||||||||||||
| |||||||||||||||||||
| Line: 203 to 220 | |||||||||||||||||||
| Related Topics: TWikiPreferences, TWikiForms | |||||||||||||||||||
| Changed: | |||||||||||||||||||
| < < |
| ||||||||||||||||||
| > > |
| ||||||||||||||||||
| <<O>> Difference Topic JSCalendarContrib (11 - 2010-05-17 - TWikiContributor) |
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | JS Calendar Contrib | |||||||
| Changed: | ||||||||
| < < | JS Calendar Contrib | |||||||
| > > | ||||||||
![]() | ||||||||
| Changed: | ||||||||
| < < | This module packages the Mishoo JSCalendar | |||||||
| > > | DEPRECATED pop-up calendar with date picker -- please upgrade to new DatePickerPlugin | |||||||
| Changed: | ||||||||
| < < | ||||||||
| > > | IntroductionThis module packages the Mishoo JSCalendar | |||||||
Using the Calendar in user forms | ||||||||
| Line: 39 to 44 | ||||||||
| easier from TWiki plugins. This module includes the functions: | ||||||||
| Changed: | ||||||||
| < < | TWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html | |||||||
| > > | renderDateForEditTWiki::Contrib::JSCalendarContrib::renderDateForEdit($name, $value, $format [, \%cssClass]) -> $html | |||||||
This is the simplest way to use calendars from a plugin.
| ||||||||
| Line: 61 to 68 | ||||||||
| Changed: | ||||||||
| < < | TWiki::Contrib::JSCalendarContrib::addHEAD($setup) | |||||||
| > > | addHEADTWiki::Contrib::JSCalendarContrib::addHEAD($setup) | |||||||
| This function will automatically add the headers for the calendar to the page being rendered. It's intended for use when you want more control over the | ||||||||
| Line: 169 to 178 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Line: 193 to 203 | ||||||||
| Related Topics: TWikiPreferences, TWikiForms | ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| <<O>> Difference Topic JSCalendarContrib (10 - 2009-04-28 - TWikiContributor) |
| Line: 1 to 1 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Added: | |||||||||||
| > > | JS Calendar Contrib
This module packages the Mishoo JSCalendar | ||||||||||
| Changed: | |||||||||||
| < < | Summary of ContentsThis module packages the Mishoo JSCalendar | ||||||||||
| > > | Using the Calendar in user formsYou can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%SYSTEMWEB%.JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%Y-%m-%d')" />
If the contrib is installed, you will see such a field here:
| ||||||||||
Detailed Documentation | |||||||||||
| Line: 125 to 136 | |||||||||||
| Changed: | |||||||||||
| < < | Using the Calendar in user formsYou can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text:
%INCLUDE{"%TWIKIWEB%/JSCalendarContribInline"}%
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" />
<input type="image" src="%PUBURL%/%TWIKIWEB%/JSCalendarContrib/img.gif" onclick="javascript: return showCalendar('cal_val_here','%e %B %Y')" />
If the contrib is installed, you will see such a field here:
<--
| ||||||||||
| > > | Installation Instructions | ||||||||||
| Deleted: | |||||||||||
| < < | Installation Instructions | ||||||||||
| You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running. Like many other TWiki extensions, this module is shipped with a fully | |||||||||||
| Line: 165 to 157 | |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| Changed: | |||||||||||
| < < | Contrib Info | ||||||||||
| > > | Contrib Info | ||||||||||
| Changed: | |||||||||||
| < < | Another great TWiki extension from the WikiRing - working together to improve your wiki experience! | ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < |
| ||||||||||
| > > |
| ||||||||||
| |||||||||||
| Line: 197 to 191 | |||||||||||
| |||||||||||
| Changed: | |||||||||||
| < < | Related Topics: TWikiPreferences | ||||||||||
| > > | Related Topics: TWikiPreferences, TWikiForms | ||||||||||
| |||||||||||
| Deleted: | |||||||||||
| < < |
| ||||||||||
| <<O>> Difference Topic JSCalendarContrib (8 - 2009-03-30 - TWikiContributor) |
| Line: 176 to 176 | ||||||||
|---|---|---|---|---|---|---|---|---|
Another great TWiki extension from the WikiRing - working together to improve your wiki experience!
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| <<O>> Difference Topic JSCalendarContrib (7 - 2008-12-06 - TWikiContributor) |
| Line: 129 to 129 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| You can also use the calendar directly in your own hand-built forms, without having to write any code. Just add this inline in the topic text: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Then, to display a calendar icon next to a text input field:
<input type="text" id="cal_val_here" /> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| If the contrib is installed, you will see such a field here: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Installation Instructions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | Like many other TWiki extensions, this module is shipped with a fully
automatic installer script written using the BuildContrib.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Deleted: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 172 to 140 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contrib Info | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | Another great TWiki extension from the WikiRing - working together to improve your wiki experience!
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Line: 191 to 163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| < < | Related Topics: TWikiPreferences | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | Related Topics: TWikiPreferences | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <<O>> Difference Topic JSCalendarContrib (4 - 2007-01-16 - TWikiContributor) |
| Line: 20 to 20 | ||||||||
|---|---|---|---|---|---|---|---|---|
Detailed DocumentationRead the Mishoo documentation or visit the demo page. | ||||||||
| Added: | ||||||||
| > > | This package provides a renderFormFieldForEditHandler that could be invoked by a plugin to ensure that forms use the Mishoo JSCalendar | |||||||
This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:
addHEAD( $setup ) | ||||||||
| Line: 162 to 164 | ||||||||
| ||||||||
| Added: | ||||||||
| > > | ||||||||
Contrib Info
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Deleted: | ||||||||
| < < | | | |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| <<O>> Difference Topic JSCalendarContrib (3 - 2006-06-26 - TWikiContributor) |
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | JSCalendarContribMishoo JSCalendar | |||||||
| Deleted: | ||||||||
| < < | Mishoo JSCalendar | |||||||
| Changed: | ||||||||
| < < | Summary of Contents | |||||||
| > > | On this page:
Summary of Contents | |||||||
| This module packages the Mishoo JSCalendar | ||||||||
| Changed: | ||||||||
| < < | Detailed Documentation | |||||||
| > > | Detailed Documentation | |||||||
| Read the Mishoo documentation or visit the demo page. This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function: | ||||||||
| Line: 52 to 57 | ||||||||
addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc. | ||||||||
| Changed: | ||||||||
| < < | Settings | |||||||
| > > | Settings | |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Changed: | ||||||||
| < < | Installation Instructions | |||||||
| > > | Installation Instructions | |||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Deleted: | ||||||||
| < < |
| |||||||
| ||||||||
| Line: 143 to 149 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Line: 156 to 163 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < | Contrib Info | |||||||
| > > | Contrib Info | |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Changed: | ||||||||
| < < |
| |||||||
| > > |
| |||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| ||||||||
| Line: 172 to 181 | ||||||||
| ||||||||
| Added: | ||||||||
| > > |
| |||||||
| Related Topics: TWikiPreferences | ||||||||
| Deleted: | ||||||||
| < < | -- TWiki:Main/CrawfordCurrie | |||||||
| <<O>> Difference Topic JSCalendarContrib (2 - 2006-04-01 - TWikiContributor) |
| Line: 1 to 1 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Added: | |||||||||||||||
| > > | <-- PLEASE DO NOT EDIT THIS TOPIC It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated. Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author. --> | ||||||||||||||
Mishoo JSCalendarSummary of Contents | |||||||||||||||
| Line: 150 to 159 | |||||||||||||||
Contrib Info
| |||||||||||||||
| Changed: | |||||||||||||||
| < < |
| ||||||||||||||
| > > |
| ||||||||||||||
| |||||||||||||||
| Changed: | |||||||||||||||
| < < |
| ||||||||||||||
| > > |
| ||||||||||||||
| |||||||||||||||
| Changed: | |||||||||||||||
| < < | -- TWiki:Main/CrawfordCurrie | ||||||||||||||
| > > | -- TWiki:Main/CrawfordCurrie | ||||||||||||||
| <<O>> Difference Topic JSCalendarContrib (1 - 2006-02-01 - TWikiContributor) |
| Line: 1 to 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > > | Mishoo JSCalendarSummary of ContentsThis module packages the Mishoo JSCalendarDetailed DocumentationRead the Mishoo documentation or visit the demo page. This package also includes a small Perl module to make using the calendar easier from TWiki plugins. This module includes the function:addHEAD( $setup )that can automatically add the required headers to the page being rendered. $setup is the name of the calendar setup module; it can either be ommitted, in which case the method described in the Mishoo documentation can be used to create calendars, or it can be 'twiki', in which case a helper function is added that simplifies using calendars to set a value in a text field. For example,
# Add styles and javascript for the calendar
require TWiki::Contrib::JSCalendarContrib;
if( $@ || !$TWiki::Contrib::JSCalendarContrib::VERSION ||
$TWiki::Contrib::JSCalendarContrib::VERSION < 0.961 ) {
TWiki::Func::writeWarning('JSCalendarContrib >=0.961 not found '.$@);
} else {
TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );
}
$html .= CGI::textfield(
{ name => 'datefield',
id => "id_datefield" });
$html .=
CGI::image_button(
-name => 'datefield_calendar',
-onclick =>
"return showCalendar('id_datefield','%e %B %Y')",
-src=> TWiki::Func::getPubUrlPath() . '/' .
TWiki::Func::getTwikiWebname() .
'/JSCalendarContrib/img.gif',
-alt => 'Calendar',
-align => 'MIDDLE' );
}
}
The first parameter to showCalendar is the id of the textfield. See the Mishoo documentation for details of the '$e %B %Y' parameter.
Note that the header will only be added once, regardless of the number of times that addHEAD is called.
addHEAD can be called from commonTagsHandler for adding the header to all pages, or to beforeEditHandler just for edit pages etc.
Settings
Installation Instructions
Contrib Info
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||