Joel,
ColdFusion is a 'SERVER-SIDE' language.  This means that all coldfusion 
commands are run on the server prior to deliver of the page to the user in 
their browser.

What this means in this situation is that you cannot request the user to 
respond to something before the CF code can continue processing. (because the 
user isn't involved with the generation of each page.

You will need to handle this through a combination of HTML, JavaScript and 
ColdFusion.

Send the original page to the user, this page will be where the user will make 
their selections.  Validate that they made selections in your 'form' using 
javascript. Once the form is submitted to your site revalidate their selections 
using ColdFusion, then return a page to the user that incorporates their 
selections.

I hope that this helps,
William

> Hi. I hope someone has an answer.. I have a block of code that I need 
> the user to select an item before the code can continue. Here's the 
> sample:
> 
   
> <form id="cityListForm">
        
> <cfloop index="i" from="1" to="#arrayLen(cityNameSearch)#">
          
> <input type="radio" name="cityList" value="#cityNameSearch[i].
> XmlAttributes.id#"/>
          
> #cityNameSearch[i].XmlText#<br />
        
> </cfloop>
       
> </form>
> 
> 1) How do I get the code to wait for user input? Can sleep be used to 
> wait for an input?
> 
> 2) Then how would I get the value of the radio button into a varible 
> to use later on in the code?
> 
> I've been looking at do-whiles and sleeps, but nothing stands out on 
> how to impliment
> 
> Thanks!
> 
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3874
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to