Groups | Blog | Home
all groups > coldfusion flash integration > july 2005 >

coldfusion flash integration : Calculate on change


Josh_und
7/5/2005 10:06:33 PM
I want to calculate a Total field by reading the Lettergrade and the Credit. I
would like the fiield to calculate onchange routine. I need some help. Not
sure how to accomplish this in a CF Flash form.

Field1 would have 2.5 and Field2 would have Letter grade A
Field3 would have 4 and Field4 would have Letter grade B
TotalField = Field1 * 4 (A=4 Field2) + Field3 * 3 (B=3 Field4)

can someone help me out with this?
bal_logicmanager
7/7/2005 12:33:43 PM
This might help.

<cfsavecontent variable="doCalc">
myTextField.text = mySelect.selectedItem.data * 10;
</cfsavecontent>
<cfform blah.............>
<cfinput name="myTextField">
<cfselect name="mySelect" onchange="#doCalc#">
blah blah...
</cfselect>
</cfform>
AddThis Social Bookmark Button