Why not do one form field to capture the initial time and then create
another variable that is 4 hours more than the initial time?

~Che

-----Original Message-----
From: Greg Morphis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 15, 2007 2:19 PM
To: CF-Talk
Subject: Re: Not sure how to do this


I'd watch out using JS.. some people have that turned off... just FYI

On 2/15/07, Bruce Sorge <[EMAIL PROTECTED]> wrote:
> I have a form where the user puts in a time range in a text field 
> (8:00 AM - 12:00 PM). What I need to do is to make sure that they 
> enter at least a 4 hour range. I thought of doing two select boxes, 
> the first has the times from midnight - 11:00 PM, and when they select 
> the first one then the next one automatically starts at 4 hours out. 
> But I totally suck at JavaScript and I looked all over the Internet 
> and could not find something. I also thought of doing two text fields, 
> one called ElectionStart and the other ElectionEnd (or something like 
> that), but then I am at the mercy of the user entering in a correctly 
> formatted time (for instance, 8:00 AM) so that does not seem very 
> viable. Has anyone ever done anything like this or does anyone have 
> any good ideas on how to implement this?
>
> Thanks,
>
> --
> Bruce Sorge
>
> "I'm a mawg: half man, half dog. I'm my own best friend!"
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

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

Reply via email to