>You will need to explain more on waht you want to do, if you processing the
>page at runtime the #variable# will still work. However if it is already
>processed and sitting on the client you will need to let us know what you
>want to do, programs like DWR, ajaxCFC and CFJsonService all allow for
>information to be returned back to the client to then do what you want to
>do.
>
>but your question is not specific enough to help you.
>
>
>
>On 4/13/07, Byte Me <[EMAIL PROTECTED]> wrote:
>>
>> Does anyone know how to call a Coldfusion variable from a .js file,
>> without converting the variable in a .cfm file?
>>
>>

Hi Andrew,
I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is stored in 
a CF SESSION variable. I use JavaScript to check the form contents being 
submitted, which (now includes a CAPTCHA challenge). If I convert the answer to 
js format(in the form), and then call it from the external .js file, that will 
work fine, but the problem is, I made the answer available to any bots, because 
it is now in the source code of the form. What I am trying to do is get the 
contents of the SESSION variable into the .js file, without compromising the 
answer. I think however it may make more sense for me to simply have the 
challenge in a separate template(that the user must go through first), before 
allowing him access the form.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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

Reply via email to