> I have a table with an amount field for 24 categories. Users can enter the
> amount and I want to automatically update a total field each time the
> enter a value and tab to the next field. However the code below I am using
> is not working
> 
> <tr class="defaulttext">
> 
>       <cfoutput query="GetCats">
>               <td align="center"><input type="checkbox" name="cat"
> value="#rf1#"></td>
>               <td bgcolor="CCCCCC" class="defaulttext">&nbsp;#rf2#</td>
>               <td bgcolor="FFFFFF" class="defaulttext"><input
> class="textboxsmall" type="text" name="#rf1#amt" value="#rf4#"></td>
>       <cfif GetCats.currentRow MOD 2 eq 0>
>               </tr>
>               </cfif>
> 
>       </cfoutput>
>       
> <tr>
>               <td colspan="3" align="center"><input type="submit"
> value="Save"></td>
>                       
>               <td colspan="3" align="center"><input type="hidden"
> name="startvalue"  value="100">
>               <input type="text" class="textboxsmall" name="cattotal"
> size="5" value="0" onFocus="{this.value=<cfloop
> query="getcats">(parseInt(<CFOUTPUT>#rf1#</CFOUTPUT>amt.value) + </cfloop>
> parseInt(startvalue.value))}"></td>
>       </tr>

------------------------------------------------------------------------------
This e-mail is intended for the use of the addressee(s) only and may contain
privileged, confidential, or proprietary information that is exempt from
disclosure under law.  If you have received this message in error, please
inform us promptly by reply e-mail, then delete the e-mail and destroy any
printed copy.   Thank you.
==============================================================================
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to