Yes, that was very helpful.

Thanks a lot!

>Without specifics, I can give you a general example:
>
>Var objForm = document.forms[ 0 ];
>Var objInput1 = objForm.elements[ "dynamic_field_1" ]; 
>Var objInput2 = objForm.elements[ "dynamic_field_2" ];
>Var objInput3 = objForm.elements[ "dynamic_result" ];
>
>objInput3.value = (objInput1.value * 1) + (objInput2.value * 1);
>
>
>
>Of course, there is no validation here. I have to *1 to make sure that
>it KNOWS not to do string concatenation, but rather mathematical
>addition.
>
>Does that help?
>
>
>.....................
>Ben Nadel
>Certified Advanced ColdFusion MX7 Developer
>www.bennadel.com
> 
>Need ColdFusion Help?
>www.bennadel.com/ask-ben/
>
>-----Original Message-----
>From: Joel Watson [mailto:[EMAIL PROTECTED] 
>Sent: Friday, May 04, 2007 10:39 AM
>To: CF-Talk
>Subject: Add Together Values of Dyanamic Fields
>
>I have a form in which several of the fields are generated dynamically
>based on the choice of the user.
>
>I would like to be able to somehow grab the entered values of the fields
>(client-side) and add them together into another field before the form
>is submitted.  I realize that technically this is a client-side
>question, but was hoping that someone might have run across/done this
>before.
>
>Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277325
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to