999000333
Programmer
- Nov 20, 2006
- 39
Hello
I wrote a form in html/php where I ask the user to enter the Document Date and a start date, to do so I used a pop up calendar written in javascript here is the code:
<script language="JavaScript" type="text/javascript">
<!--
function calendarDocDateCallback(date, month, year)
{
if(date<10) { date = '0' + date; }
if(month<10) { month = '0' + month; }
document.forms[0].DocDate.value = year + '-' + month + '-' + date;
}
calendarDocDate = new dynCalendar('calendarDocDate', 'calendarDocDateCallback', '../js/dynCalendar/images/');
calendarDocDate.setMonthCombo(false);
calendarDocDate.setYearCombo(false);
calendarDocDate.setOffset(40, -40)
//-->
</script>
Now everything works fine if I put this code on ONE input text only when I put the code for the other input text nothing appears.
Can anyone give me some suggestion on how to fix this conflict problem?
Thanks.
Paola
I wrote a form in html/php where I ask the user to enter the Document Date and a start date, to do so I used a pop up calendar written in javascript here is the code:
<script language="JavaScript" type="text/javascript">
<!--
function calendarDocDateCallback(date, month, year)
{
if(date<10) { date = '0' + date; }
if(month<10) { month = '0' + month; }
document.forms[0].DocDate.value = year + '-' + month + '-' + date;
}
calendarDocDate = new dynCalendar('calendarDocDate', 'calendarDocDateCallback', '../js/dynCalendar/images/');
calendarDocDate.setMonthCombo(false);
calendarDocDate.setYearCombo(false);
calendarDocDate.setOffset(40, -40)
//-->
</script>
Now everything works fine if I put this code on ONE input text only when I put the code for the other input text nothing appears.
Can anyone give me some suggestion on how to fix this conflict problem?
Thanks.
Paola