Since I upgraded to CF MX7 auto-validation on my cfinput forms stops working,
if I have my custom Javascript onSubmit handler
Example:
<script language="javascript">
function checkFields() {
alert('This validation should occurred after the CF
validation.');
}
</script>
<body>
<cfform id="form1" name="myForm" method="post" onSubmit="return checkFields()"
action="">
<table width="215" border="1">
<tr>
<td width="205">
<cfinput type="text" name="float" message="float datatype" validate="float"/>
float </td>
</tr>
<tr>
<td><label>
<cfinput type="text" name="date" message="date datatype" validate="date"
/>
date</label></td>
</tr>
<tr>
<td><input type="submit" name="button" id="button" value="Submit" /></td>
</tr>
</table>
</cfform>
Please advise
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303278
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4