I'm not sure what you mean by why I would want to do this... I did figure it out myself eventually. It required using a cfoutput inside the script and outputting the variable with # signs. For a lot of reasons, I needed to reference a coldfusion set variable outside of the script, inside the script. I used some theoretical code as an example to show what I was trying to accomplish. When using cfform as type flash, you need to run a function using cfsavecontent when trying to make a form field display a new value after an onChange or onClick event.

Taco Fleur wrote:
<cfset gridTotalTwo = 520>

<cfsavecontent variable="calculateTotal"> <cfscript>
    //show the total
RetainedEarningsEOY.text = gridTotalTwo + number(RetainedEarningsBOY.text);
</cfscript>
</cfsavecontent>

But why would you want to do this? Maybe you are after

<cfscript>
    //show the total
RetainedEarningsEOY.text = gridTotalTwo + number(RetainedEarningsBOY.text);
</cfscript>
Or

<cfset RetainedEarningsEOY.text = gridTotalTwo + number(RetainedEarningsBOY.text />


________________________________
Taco Fleur - E-commerce Development Manager
Shelco Searches & Services
An Authorised ASIC Information Broker
www.shelco.com.au
Ph: + 61 7 3236 2605



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to