just realized that if they pick a start time later than 8:00pm or an
end time of earlier than 4:00am, there's funkiness.  just FYI :)

On 2/15/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> this should get you started (i'm not as concerned as others about JS
> being turned off... i think the minority of folks that think cookies
> are going to compromise their security are the same folks who turn off
> JS... but i'd still validate on the server as well).
>
> <script type="text/javascript">
>         function changeEndTime(n) {
>                 if (document.getElementById('endTime').selectedIndex -
> document.getElementById('startTime').selectedIndex < 4) {
>                         document.getElementById('endTime').selectedIndex = n 
> + 4;
>                 }
>         }
>
>         function changeStartTime(n) {
>                 if (document.getElementById('endTime').selectedIndex -
> document.getElementById('startTime').selectedIndex < 4) {
>                         document.getElementById('startTime').selectedIndex = 
> n - 4;
>                 }
>         }
> </script>
>
> <cfset timelist =
> "12:00am,1:00am,2:00am,3:00am,4:00am,5:00am,6:00am,7:00am,8:00am,9:00am,10:00am,11:00am,12:00pm,1:00pm,2:00pm,3:00pm,4:00pm,5:00pm,6:00pm,7:00pm,8:00pm,9:00pm,10:00pm,11:00pm"
> />
>
> <cfoutput>
> <form>
>         Start Time:
>         <select name="startTime" id="startTime"
> onchange="changeEndTime(this.selectedIndex);">
>         <cfloop list="#timelist#" index="i">
>                 <option<cfif i is "9:00am"> 
> selected="selected"</cfif>>#i#</option>
>         </cfloop>
>         </select>
>
>         End Time:
>         <select name="endTime" id="endTime"
> onchange="changeStartTime(this.selectedIndex);">
>         <cfloop list="#timelist#" index="i">
>                 <option<cfif i is "1:00pm"> 
> selected="selected"</cfif>>#i#</option>
>         </cfloop>
>         </select>
> </form>
> </cfoutput>
>
> --
> Charlie Griefer
>
> ================================================
> "...All the world shall be your enemy, Prince with a Thousand Enemies,
> and whenever they catch you, they will kill you. But first they must catch
> you, digger, listener, runner, prince with a swift warning.
> Be cunning and full of tricks and your people shall never be destroyed."
>


-- 
Charlie Griefer

================================================
"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:269945
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