all groups > coldfusion flash integration > june 2007 >
You're in the

coldfusion flash integration

group:

cfformitem script variable used in cfif


cfformitem script variable used in cfif superkat
6/12/2007 4:50:16 PM
coldfusion flash integration: Hi,

I have this code within a cfform in flash format:

<cfformitem type="script">
mycat = {Category.selectedItem.data};
</cfformitem>

<cfformitem type="html">
<cfif #mycat# IS 'XXX'>....</cfif>
</cfformitem>

It tells me #mycat# is undefined

Can someone tell me how i can correctly set the mycat variable so that i can
use it with my cfif?
it would be very nice of you because i'm lost here ;-(

regards,
kat
Re: cfformitem script variable used in cfif The ScareCrow
6/12/2007 11:29:30 PM
You can't

Action script is client side, Coldfusion is server side !!

Re: cfformitem script variable used in cfif superkat
6/14/2007 8:26:41 AM
Thansk for your reply Ken,

is there a way i get recuperate the variable for further usage .... by storing it somewhere, or so?

regards,
Re: cfformitem script variable used in cfif The ScareCrow
6/14/2007 11:27:05 PM
It's available in actionscript.

So, let's assume you want to change the text in a form field called "myText"

Then

if(mycatt == 'XXX'){
_root.myText.text = 'Some new text.';
}

Re: cfformitem script variable used in cfif superkat
6/15/2007 12:00:00 AM
AddThis Social Bookmark Button