Hi Bob,
Happy with the Date_Range_Picker, using your script (and FAQ)
But how do I get the totals days from this script?
Any thoughts on this?
Happy with the Date_Range_Picker, using your script (and FAQ)
But how do I get the totals days from this script?
<?php
JHTML::_('behavior.mootools');
$picker_array = array(
'Picker.js',
'Picker.Attach.js',
'Picker.Date.js',
'Picker.Date.Range.js',
'Locale.nl-NL.DatePicker.js'
);
$doc =& JFactory::getDocument();
foreach ( $picker_array as $v ) {
$doc->addScript(JURI::base().'components/com_chronoforms/js/datepicker_moo/'.$v);
}
$doc->addStyleSheet(JURI::base().'components/com_chronoforms/js/datepicker_moo/datepicker.css');
$doc->addStyleDeclaration("
.datepicker tr, .datepicker td {
border:none;
}
");
?>
var dp, date_range;
window.addEvent('domready', function() {
date_range = $('date_range');
dp = new Picker.Date.Range(date_range, {
pickerClass: 'datepicker',
columns: 2,
minDate: new Date()
});
});Any thoughts on this?
Hi SPABO,
You can add a function to the Picker's OnSelect event that will do a calculation:
The datepicker documents are here
Bob
You can add a function to the Picker's OnSelect event that will do a calculation:
dp = new Picker.Date.Range(date_range, {
pickerClass: 'datepicker',
columns: 2,
minDate: new Date(),
onSelect: function(date) {
//some calculate function here
}
});The datepicker documents are here
Bob
Bob,
Struggling what you mean by
What/where can we find a Picker's OnSelect event?
Next to this:
I cannot find the code for the startdate and enddate, so..how should i be able to calculate??
Struggling what you mean by
You can add a function to the Picker's OnSelect event
What/where can we find a Picker's OnSelect event?
Next to this:
I cannot find the code for the startdate and enddate, so..how should i be able to calculate??
This topic is locked and no more replies can be posted.
