Flash Form Text Input onchange
Is there a way, with
<cfform format="flash">
<cfinput type="text" name="abc">
to write an event handler that will function when form element abc loses
focus? If I do this:
<cfinput type="text" name="abc" onchange="doSomething();">
the doSomething function runs on every keystroke.
Re: Flash Form Text Input onchange
I think you are looking for the onBlur="doSomething();" event handler
Re: Flash Form Text Input onchange
According to this,
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/
wwhelp.htm?context=ColdFusion_Doentation&file=0 0000279.htm
cfinput does not have an onBlur event. You can set up your form element to
validate on blur
validateAt= one or more of "onBlur", "onServer", "onSubmit"
but these are the available events
onKeyUp = "JavaScript or ActionScript"
onKeyDown = "JavaScript or ActionScript"
onMouseUp = "JavaScript or ActionScript"
onMouseDown = "JavaScript or ActionScript"
onChange = "JavaScript or ActionScript"
onClick = "JavaScript or ActionScript"
The first five run on every keystroke, the last is not applicable to a text
input.