A secure hash might be what the doctor ordered. CF could send a hashed version of the "answer" then you could run js code to hash the users input before the compare.
Here is one site that has some JS hash algorithms. http://pajhome.org.uk/crypt/md5/ The only problem is you will need to analyze the JS code and create a CF counterpart. It would take a bit of work on your part, but I think outside of an Ajax solution it is your best bet. > >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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275181 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4