I use onBlur with a <cfinput> tag and it works just fine:
<cfinput type="Text" name="txtContactBirthDate" required="Yes" size="10"
maxlength="10" message="You must provide a date of birth for this contact in
the form, mm/dd/yyyy, or mm-dd-yyyy." value="#qryGetChildInfo.birthday#"
onBlur="fncCalculateAge()">
It fires off a function that does some calculations on the date and then
sets the value of a hidden text field.
Maybe if you posted the code you are having trouble with .....? :)
P.S. You don't *have* to use <cfinput> to assign a database derived value to
a text box. You can do it with a simple <input> tag as well.
Todd Ashworth
----- Original Message -----
From: "Kim Ahlbrandt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 16, 2000 10:59 AM
Subject: Something that will work like onblur with CFINPUT
| I have a CFFORM with two CFINPUT text boxes. I need to take the amount
they
| fill in the first, and calculate a number that will be filled in the
second.
| I want to do this onblur but onblur doesn't seem to work in a CFINPUT
tag.
| Is there a way to do this? I have a button set up right now "Calculate
| Value" and it is a regular INPUT tag with OnClick set up and that works.
| But, that isn't what the users want. Help!!
|
| Also, while I'm on the subject...is there a way to freeze that second
| textbox (so they can't change it once the calculation is in there. Again,
I
| can do this with a regular INPUT tag, but not with CFINPUT.
|
| I need to use CFINPUT as I'm filling the textboxes in with query values if
| they have already been in and saved a record.
|
| Thanks,
|
| Kim
|
| ________________________________________________________________________
| Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|
| --------------------------------------------------------------------------
----
| Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
| To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
|
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.