|
I didn't realize this attribute
existed. I'll give it a whirl.
Thanks.
Gary L.
Alford Manufacturing
Operations Project Specialist Bell Helicopter XWorx Phone: (817)
280-6233 Fax: (817) 278-6233 [EMAIL PROTECTED]
I have not failed. I've found 10,000 ways that won't
work. Thomas
A. Edison
Have you tried using the passThrough
attribute which allows CF to pass the onkeyup through to the HTML? I
don't think CFINPUT understands what onkeyup is..
I have a _javascript_ function that checks
for the length of a text box input and, if the length meets the set
criteria, automatically advances the cursor to the next field (i.e. the
three parts of a telephone number). This function is called on a
"onkeyup" command set into the input tag. However, if, instead of
using <input..., I use a <cfinput..., this function no longer
works. (Code as follows:)
<script
language="_javascript_">
function
autoTab(obj,event,len,next_field) {
var
fieldLength = obj.length;
if
(fieldLength == len) {
next_field.focus();
}
}
</script>
<cfinput name="AreaCode"
required="Yes"
message="Please enter a valid area code">
If I use a straight <input... tag, it
works great. The only reason I am using the <cfinput... is to take
full advantage of the required and message attributes.
Any ideas?
Gary
L. Alford Manufacturing Operations Project Specialist Bell Helicopter
XWorx Phone: (817) 280-6233 Fax: (817)
278-6233 [EMAIL PROTECTED]
I have not failed. I've found 10,000 ways that won't
work. Thomas
A. Edison
|
<<attachment: Glacier Bkgrd.jpg>>