| Contents > Developing ColdFusion MX Applications > Building Dynamic Forms > Input validation with JavaScript |
|
|
|
|
||
In addition to native ColdFusion input validation using the validate attribute of the cfinput and cftextinput tags, the following tags support the onvalidate attribute, which lets you specify a JavaScript function to handle your cfform input validation:
ColdFusion passes the following arguments to the JavaScript function you specify in the onvalidate attribute:
For example, if you code the cfinput tag as the following:
<cfinput type="text" ... <!--- Do not include () in JavaScript function name ---> onvalidate="handleValidation" ... >
You define the JavaScript function as the following:
<script>
<!--
function handleValidation(form_object, input_object, object_value) {
...
}
//-->
</script>
|
|
||
| Contents > Developing ColdFusion MX Applications > Building Dynamic Forms > Input validation with JavaScript |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/dynami45.htm
Comments
halL said on Jan 20, 2004 at 8:57 AM : profit11 said on Feb 25, 2004 at 2:37 PM : No screen name said on Aug 25, 2004 at 11:56 PM : Lord Bron said on Jul 6, 2005 at 11:19 AM :