Depending on your needs, you might try the work-around mentioned here:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55190#299204
Or you try binding the text field to the datefield:
<script type="text/javascript">
function calcAge(bDateValue)
{
// ... return whatever value desired
return bDateValue;
}
</script>
<cfform name="patient_form" action="patient_action.cfm" method="post">
<cfinput mask="DDMMMYYYY" name="patient_bdate" type="datefield"
value=""></td>
<cfinput type="text" name="patient_age"
bind="javascript:calcAge({patient_bdate})">
</cfform>
HTH
-Leigh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328780
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4