Joomla.it Forum
Non solo Joomla... => Sviluppo => : demolay 28 Jan 2009, 17:35:39
-
Ciao a tutti!
Ho fatto un componente nel quale ho inserito solo questo:
<?php JHTML::_('script', 'joomla.javascript.js', 'includes/js/');?>
<form id="filtro" method="post" action="index.php">
<div class="filter_area">
<input class="inputbox" type="text" name="review_date" id="review_date" value="05/05/2008" size="25" maxlength="19" />
<input type="reset" class="button" value="..." onclick="return showCalendar('review_date','y-mm-dd');" />
</div>
</form>
mi sembra tutto corretto ma niente... showCalendar non si apre!
sapete se devo fare altre include o se devo inizializzare qualcosa?
grazie mille!
ciao ciao
-
ragazzi.. ;D ho risolto cosė:
<!-- Dichiarazione -->
<?php JHTML::_('behavior.calendar'); ?>
<!-- Esempio per il richiamo -->
<input type="text" name="data_evento" id="data_evento" readonly="1"/>
<input type="button" name="pdata_evento" id="pdata_evento" value="..."/>
<script type="text/javascript">
Calendar.setup({
inputField : "data_evento", // id of the input field
ifFormat : "%d/%m/%Y", // format of the input field
button : "pdata_evento", // trigger for the calendar (button ID)
singleClick : true, // double-click mode
step : 1 // show all years in drop-down boxes (instead of every other year as default)
});
</script>
Ciao
deMolay