Board Logo

How to use tha calendar twice on one form
waijs - 9/2/2009 at 06:27 AM

Does anyone know how to use the tigra calendar more than one time in a single form(same form)? Please help asap/


DanielWilson - 9/9/2009 at 05:49 PM

Be sure you have the correct control name for each instance ... I have seen it work with PHP writing multiple copies of the calendar in a form.

Following is a reduced version of HTML that's working w/ 2 calendars:

<form action="SaveNewUser.php" method="post" name="join_form" id="join_form" >
<input type="hidden" value="join" name="action" />
<ul class="heading_pane2_2_user ">

<li class="blue">Login ID</li>
<li style="width:140px">
<input type="text" class="input_field" style="width:140px" name="UserName" id="UserName" value="" maxlength="15"/>
</li>

<li class="blue">Date of Birth</li>
<li style="width:145px">
<input name="DoB" type="text" class="input_field" id="DoB" value="" readonly=""/><script language="JavaScript">
new tcal ({
'formname': 'join_form',
'controlname': 'DoB'
});
</script>
</li>

<li class="blue">Start Date</li>
<li style="width:150px">
<input name="StartDate" type="text" class="input_field" id="StartDate" value="" readonly=""/><script language="JavaScript">
new tcal ({
'formname': 'join_form',
'controlname': 'StartDate'
});
</script>
</li>


</form>


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/