On Wed, Dec 2, 2009 at 12:51 PM, Leigh _ <[email protected]> wrote:

>
> 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
>
>
Thanks I'm going to try that right now.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to