radnelac
Junior Member
Posts: 3
Registered: 7/30/2007
Member Is Offline
|
| posted on 7/30/2007 at 12:07 PM |
|
|
Mutliple Calendars in 1 single form
Good afternoon,
I have 2 calendars in a single form and I am experiencing the follwowing problem: both calendar update the first field. I have checked the
docuemtation and forum, but I just can't figure out what the problem could be.
Here's a snippet of my HTML code:
<td>Date From </td>
<td nowrap><input name="DateFrom" type="text" id="DateFrom" size="17" maxlength="19" readonly="yes">
<a href="javascript:cal1.popup();"><img src="cal.gif"></a></td>
<td>Date To </td>
<td nowrap><input name="DateTo" type="text" id="dateTo" size="17" maxlength="19" readonly="yes">
<a href="javascript:cal1.popup();"><img src="cal.gif"></a></td>
and the JS:
</form>
<script language="JavaScript">
var cal1 = new calendar1(document.forms['frmDate'].elements['DateFrom']);
var cal2 = new calendar1(document.forms['frmDate'].elements['DateTo']);
</script>
</table>
Any help would be greatly appreciated.
G.
|
|
|
radnelac
Junior Member
Posts: 3
Registered: 7/30/2007
Member Is Offline
|
| posted on 7/30/2007 at 12:08 PM |
|
|
Ok... I think I can now SEE, where th eproblem lies.... !!!
I think I am not fully awake...
G.
|
|
|
radnelac
Junior Member
Posts: 3
Registered: 7/30/2007
Member Is Offline
|
| posted on 7/30/2007 at 12:11 PM |
|
|
Changed Cal1 for Cal2 and it works a treat...
G.
|
|
|