RE: i shall ask 1 more time (works for me)
This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time (works for me)
Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time (works for me)
yeah I just copied and pasted his, a client would jump on that one. -Original Message- From: Ryan Kime [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 10:09 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time
Are you trying to set some sort of deadline? You want a set time when things end ... and display a countdown to that time? Try setting your time this way: timeEnd=CreateDateTime(2002, 11, 8, 15, 30, 0); H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 5:41 PM To: CF-Talk Subject: Re: i shall ask 1 more time !--- script to count down time left in current auction --- CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT and no its not refreshing i have an example (live) if you need to see that Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:27 PM Subject: RE: i shall ask 1 more time First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
oh lol thanks - Original Message - From: Ryan Kime [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:09 AM Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time
this is how I have it set in the application.cfm template cfset deadline = createDateTime(2003, 2, 16, 23, 25, 0) Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 12:40 PM Subject: RE: i shall ask 1 more time Are you trying to set some sort of deadline? You want a set time when things end ... and display a countdown to that time? Try setting your time this way: timeEnd=CreateDateTime(2002, 11, 8, 15, 30, 0); H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 5:41 PM To: CF-Talk Subject: Re: i shall ask 1 more time !--- script to count down time left in current auction --- CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT and no its not refreshing i have an example (live) if you need to see that Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:27 PM Subject: RE: i shall ask 1 more time First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time (works for me)
You do not need to use the same layout as I did. Just the functionality -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 7:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
i'll have a few minutes in a few to go over the two thanks for your effort!:) Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 8:30 PM Subject: RE: i shall ask 1 more time (works for me) You do not need to use the same layout as I did. Just the functionality -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 7:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
I suspect the code you posted may not reflect what you're using. In any case, I wouldn't recommend doing all the comparisons of days, hours, minutes and seconds to tell if an auction has ended. You've got the end date/time (deadline) and you know what the current date/time are (Now()). Just compare the two and be done with it. Use the modulo operator to break the time left into days, hours, minutes, seconds. cfset deadline = 02/18/2003 10:28 PM cfscript dtogo = DateDiff(d, Now(), deadline); htogo = DateDiff(h, Now(), deadline) mod 24; mtogo = DateDiff(n, Now(), deadline) mod 60; stogo = DateDiff(s, Now(), deadline) mod 60; /cfscript cfif Now() gte deadline Too late. The auction has ended.br Days: 0br Hours: 0br Minutes: 0br Seconds: 0br cfelse cfoutput Days: cfif dtogo lt 1Last Day!cfelse#dtogo#/cfifbr Hours: cfif htogo lt 1Last Hour!cfelse#htogo#/cfifbr Minutes: cfif mtogo lt 1Last Minute!cfelse#mtogo#/cfifbr Seconds: #stogo#br /cfoutput /cfif Jim - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 5:23 PM Subject: Re: i shall ask 1 more time (works for me) oh lol thanks - Original Message - From: Ryan Kime [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:09 AM Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
i took your code and copied and pasted into a new template and ran it and the same thing happened to what i was using it says days: -1 hours: 12 minutes: 34 seconds: 45 so in my code it would show the day correctly but restart the countdown from days Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
copied and pasted your code too and the same thing happens the days work but the hours, minutes seconds, start over Dave - Original Message - From: Jim McAtee [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:25 PM Subject: Re: i shall ask 1 more time (works for me) I suspect the code you posted may not reflect what you're using. In any case, I wouldn't recommend doing all the comparisons of days, hours, minutes and seconds to tell if an auction has ended. You've got the end date/time (deadline) and you know what the current date/time are (Now()). Just compare the two and be done with it. Use the modulo operator to break the time left into days, hours, minutes, seconds. cfset deadline = 02/18/2003 10:28 PM cfscript dtogo = DateDiff(d, Now(), deadline); htogo = DateDiff(h, Now(), deadline) mod 24; mtogo = DateDiff(n, Now(), deadline) mod 60; stogo = DateDiff(s, Now(), deadline) mod 60; /cfscript cfif Now() gte deadline Too late. The auction has ended.br Days: 0br Hours: 0br Minutes: 0br Seconds: 0br cfelse cfoutput Days: cfif dtogo lt 1Last Day!cfelse#dtogo#/cfifbr Hours: cfif htogo lt 1Last Hour!cfelse#htogo#/cfifbr Minutes: cfif mtogo lt 1Last Minute!cfelse#mtogo#/cfifbr Seconds: #stogo#br /cfoutput /cfif Jim - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 5:23 PM Subject: Re: i shall ask 1 more time (works for me) oh lol thanks - Original Message - From: Ryan Kime [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:09 AM Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
here is your code live: http://www.real-singles.com/dead.cfm Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
actually i think yours works thanks! Dave - Original Message - From: Jim McAtee [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:25 PM Subject: Re: i shall ask 1 more time (works for me) I suspect the code you posted may not reflect what you're using. In any case, I wouldn't recommend doing all the comparisons of days, hours, minutes and seconds to tell if an auction has ended. You've got the end date/time (deadline) and you know what the current date/time are (Now()). Just compare the two and be done with it. Use the modulo operator to break the time left into days, hours, minutes, seconds. cfset deadline = 02/18/2003 10:28 PM cfscript dtogo = DateDiff(d, Now(), deadline); htogo = DateDiff(h, Now(), deadline) mod 24; mtogo = DateDiff(n, Now(), deadline) mod 60; stogo = DateDiff(s, Now(), deadline) mod 60; /cfscript cfif Now() gte deadline Too late. The auction has ended.br Days: 0br Hours: 0br Minutes: 0br Seconds: 0br cfelse cfoutput Days: cfif dtogo lt 1Last Day!cfelse#dtogo#/cfifbr Hours: cfif htogo lt 1Last Hour!cfelse#htogo#/cfifbr Minutes: cfif mtogo lt 1Last Minute!cfelse#mtogo#/cfifbr Seconds: #stogo#br /cfoutput /cfif Jim - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 5:23 PM Subject: Re: i shall ask 1 more time (works for me) oh lol thanks - Original Message - From: Ryan Kime [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:09 AM Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time (works for me)
Dave: Here's the auction site I built ... unfortunately, I can't turn the bidding on for you because corporate now controls the dev and production site, but still thought you might like to see it. I'll see if I can turn bidding on tomorrow some time. http://devauction.insidevc.com/ H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
ok, i last fix......... i shall ask 1 more time (works for me)
last thing i need to do is this the server is 3 hours behind, how do i add 3 hours to it? cfset deadline = 02/17/2003 05:55 PM Dave - Original Message - From: Jim McAtee [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:25 PM Subject: Re: i shall ask 1 more time (works for me) I suspect the code you posted may not reflect what you're using. In any case, I wouldn't recommend doing all the comparisons of days, hours, minutes and seconds to tell if an auction has ended. You've got the end date/time (deadline) and you know what the current date/time are (Now()). Just compare the two and be done with it. Use the modulo operator to break the time left into days, hours, minutes, seconds. cfset deadline = 02/18/2003 10:28 PM cfscript dtogo = DateDiff(d, Now(), deadline); htogo = DateDiff(h, Now(), deadline) mod 24; mtogo = DateDiff(n, Now(), deadline) mod 60; stogo = DateDiff(s, Now(), deadline) mod 60; /cfscript cfif Now() gte deadline Too late. The auction has ended.br Days: 0br Hours: 0br Minutes: 0br Seconds: 0br cfelse cfoutput Days: cfif dtogo lt 1Last Day!cfelse#dtogo#/cfifbr Hours: cfif htogo lt 1Last Hour!cfelse#htogo#/cfifbr Minutes: cfif mtogo lt 1Last Minute!cfelse#mtogo#/cfifbr Seconds: #stogo#br /cfoutput /cfif Jim - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 5:23 PM Subject: Re: i shall ask 1 more time (works for me) oh lol thanks - Original Message - From: Ryan Kime [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:09 AM Subject: RE: i shall ask 1 more time (works for me) Just to add in something to cfdev's email, make sure you use the proper form of TO. Especially if it is for a client. strongTo Late/strong Should be: strongToo Late/strong -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 8:51 AM To: CF-Talk Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time
Dave, Scope your variable. either request.deadline or application.deadline Then do your date comparisons against that date and time. cfif Now() GT request.AuctionEnd cfset request.AuctionStatus=Over cfelse cfparam name=request.AuctionStatus default= /cfif Then in place were needed around the site, I have (html removed): cfif not request.AuctionStatus IS Over cfoutputa href=index.cfm?action=bidhistory#client.URLToken#ITEMS_ID=#FindItem.ITEMS _ID#Bid History/a /cfoutput Your Bid:$cfinput type=Text name=NewBid message=Please specify your bid required=Yes size=8 maxlength=6 onchange=MinBid() nbsp;input type=submit value=BID cfelse cfoutputa href=index.cfm?action=bidhistory#client.URLToken#ITEMS_ID=#FindItem.ITEMS _ID#Bid History/a/cfoutputBidding Is Over cfoutput The auction ends #DATEFORMAT(request.AuctionEnd, , d)#, at #timeFORMAT(request.AuctionEnd, h:MM)# p.m. EDT./cfoutput H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:27 PM To: CF-Talk Subject: Re: i shall ask 1 more time this is how I have it set in the application.cfm template cfset deadline = createDateTime(2003, 2, 16, 23, 25, 0) Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 12:40 PM Subject: RE: i shall ask 1 more time Are you trying to set some sort of deadline? You want a set time when things end ... and display a countdown to that time? Try setting your time this way: timeEnd=CreateDateTime(2002, 11, 8, 15, 30, 0); H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 5:41 PM To: CF-Talk Subject: Re: i shall ask 1 more time !--- script to count down time left in current auction --- CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT and no its not refreshing i have an example (live) if you need to see that Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:27 PM Subject: RE: i shall ask 1 more time First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time (works for me)
thanks Howard, but don't go too any real lengths. This really isn't a big auction site. Actually its just a few pages for my competitors clients. then if they actually do well on the auction I will build a bigger one. I was going to do it in asp but since I am learning cfm, I figured, what the hell might as well give it a go. besides I am only getting $200 for it. Just trying to do more so I can learn. Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:11 PM Subject: RE: i shall ask 1 more time (works for me) Dave: Here's the auction site I built ... unfortunately, I can't turn the bidding on for you because corporate now controls the dev and production site, but still thought you might like to see it. I'll see if I can turn bidding on tomorrow some time. http://devauction.insidevc.com/ H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time (works for me)
An auction is a hell of a thing to learn on ... but I know I was much smarter after doing our auction site. H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 7:44 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) thanks Howard, but don't go too any real lengths. This really isn't a big auction site. Actually its just a few pages for my competitors clients. then if they actually do well on the auction I will build a bigger one. I was going to do it in asp but since I am learning cfm, I figured, what the hell might as well give it a go. besides I am only getting $200 for it. Just trying to do more so I can learn. Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:11 PM Subject: RE: i shall ask 1 more time (works for me) Dave: Here's the auction site I built ... unfortunately, I can't turn the bidding on for you because corporate now controls the dev and production site, but still thought you might like to see it. I'll see if I can turn bidding on tomorrow some time. http://devauction.insidevc.com/ H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ
Re: i shall ask 1 more time (works for me)
so far it hasn't been too bad. Lucky I'm coming from asp so I have an idea. No payments or anything just a simple who is the highest bidder. People out here in ky don't have a clue on how much a full fledge dynamic site will run. They think $500 is too much! my first real cfm site is a singles site which seems like it will be a lot more complicated than anything else I have ever done. but by the time I'm done, I should have a good idea on cfm Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:50 PM Subject: RE: i shall ask 1 more time (works for me) An auction is a hell of a thing to learn on ... but I know I was much smarter after doing our auction site. H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 7:44 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) thanks Howard, but don't go too any real lengths. This really isn't a big auction site. Actually its just a few pages for my competitors clients. then if they actually do well on the auction I will build a bigger one. I was going to do it in asp but since I am learning cfm, I figured, what the hell might as well give it a go. besides I am only getting $200 for it. Just trying to do more so I can learn. Dave - Original Message - From: Owens, Howard [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 10:11 PM Subject: RE: i shall ask 1 more time (works for me) Dave: Here's the auction site I built ... unfortunately, I can't turn the bidding on for you because corporate now controls the dev and production site, but still thought you might like to see it. I'll see if I can turn bidding on tomorrow some time. http://devauction.insidevc.com/ H. -Original Message- From: Dave Lyons [SMTP:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:23 PM To: CF-Talk Subject: Re: i shall ask 1 more time (works for me) i'll try that I cant lay it out exactly like that because of the tables, see: http://www.real-singles.com/auctioncfm/auction.cfm and pick an item and you can see what I mean I have also set the deadline on the application page since all the items will share the same deadline. Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:50 AM Subject: RE: i shall ask 1 more time (works for me) This is what I used and it works for me. Once it is 0 time remaining, it shows, too late: cfset deadline = 02/17/2003 9:50 AM CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongTo Late/strong cfelse cfoutput #NumberFormat(daystogo,'00')# Daysbr #NumberFormat(hourstogo,'00')# Hoursbr #NumberFormat(minutestogo,'00')# Minutesbr #NumberFormat(secondstogo,'00')# seconds /cfoutput /cfif -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:50 PM To: CF-Talk Subject: Re: i shall ask 1 more time for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less
Re: i shall ask 1 more time (works for me)
Dave I think you should be charging more: or come work for me - i dont mind cheap labour ;-) Steve Soars [p] 07 3821-5800 [f] 07 3821-5811 www.i-redlands.com.au Interactive Redlands what we do in life echoes an eternity - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, February 18, 2003 2:08 PM Subject: Re: i shall ask 1 more time (works for me) | so far it hasn't been too bad. Lucky I'm coming from asp so I have an idea. | No payments or anything just a simple who is the highest bidder. People out | here in ky don't have a clue on how much a full fledge dynamic site will | run. They think $500 is too much! | my first real cfm site is a singles site which seems like it will be a lot | more complicated than anything else I have ever done. | but by the time I'm done, I should have a good idea on cfm | | Dave | | - Original Message - | From: Owens, Howard [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 10:50 PM | Subject: RE: i shall ask 1 more time (works for me) | | | An auction is a hell of a thing to learn on ... but I know I was much | smarter after doing our auction site. | | H. | | | -Original Message- | From: Dave Lyons [SMTP:[EMAIL PROTECTED]] | Sent: Monday, February 17, 2003 7:44 PM | To: CF-Talk | Subject: Re: i shall ask 1 more time (works for me) | | thanks Howard, but don't go too any real lengths. This really isn't a | big | auction site. Actually its just a few pages for my competitors clients. | then | if they actually do well on the auction I will build a bigger one. | I was going to do it in asp but since I am learning cfm, I figured, what | the | hell might as well give it a go. | besides I am only getting $200 for it. | Just trying to do more so I can learn. | | Dave | | - Original Message - | From: Owens, Howard [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 10:11 PM | Subject: RE: i shall ask 1 more time (works for me) | | |Dave: | |Here's the auction site I built ... unfortunately, I can't turn the | bidding |on for you because corporate now controls the dev and production site, | but |still thought you might like to see it. I'll see if I can turn | bidding | on |tomorrow some time. | |http://devauction.insidevc.com/ | |H. | | | -Original Message- | From: Dave Lyons [SMTP:[EMAIL PROTECTED]] | Sent: Monday, February 17, 2003 4:23 PM | To: CF-Talk | Subject: Re: i shall ask 1 more time (works for me) | | i'll try that | I cant lay it out exactly like that because of the tables, see: | http://www.real-singles.com/auctioncfm/auction.cfm | and pick an item and you can see what I mean | | I have also set the deadline on the application page since all the | items | will share the same deadline. | | Dave | | - Original Message - | From: CFDEV [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 9:50 AM | Subject: RE: i shall ask 1 more time (works for me) | | | This is what I used and it works for me. | Once it is 0 time remaining, it shows, too late: | | | cfset deadline = 02/17/2003 9:50 AM | CFSCRIPT | timeleft = DateDiff(s, Now(), deadline); | daystogo = Int(timeleft /86400); | leftover1 = timeleft - (daystogo * 86400); | hourstogo = Int(leftover1/3600); | leftover2 = leftover1 - (hourstogo * 3600); | minutestogo= Int(leftover2/60); | leftover3 = leftover2 - (minutestogo * 60); | secondstogo = leftover3; | /CFSCRIPT | | | | cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND | secondstogo IS 00 | strongTo Late/strong | cfelse | cfoutput | #NumberFormat(daystogo,'00')# Daysbr | #NumberFormat(hourstogo,'00')# Hoursbr | #NumberFormat(minutestogo,'00')# Minutesbr | #NumberFormat(secondstogo,'00')# seconds | /cfoutput | /cfif | | | | | | -Original Message- | From: Dave Lyons [mailto:[EMAIL PROTECTED]] | Sent: Sunday, February 16, 2003 8:50 PM | To: CF-Talk | Subject: Re: i shall ask 1 more time | | | for some reason that throws an error about daystogo being | undefined | Dave | | - Original Message - | From: Matthew Walker [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Sunday, February 16, 2003 8:42 PM | Subject: RE: i shall ask 1 more time | | | Hard to tell without knowing more about your code, but how | about: | cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 | AND | secondstogo lte 0 | |-Original Message- |From: Dave Lyons [mailto
Re: i shall ask 1 more time (works for me)
lol its a long story but I don't do this for a living, more of a hobby, so the money doesn't really matter. Its for a competitors client, so its kinda showing off too, since she only does static with frontpage. I'm not to good, I'm sure you don't want me even for that cheap. Dave - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, February 17, 2003 11:24 PM Subject: Re: i shall ask 1 more time (works for me) Dave I think you should be charging more: or come work for me - i dont mind cheap labour ;-) Steve Soars [p] 07 3821-5800 [f] 07 3821-5811 www.i-redlands.com.au Interactive Redlands what we do in life echoes an eternity - Original Message - From: Dave Lyons [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, February 18, 2003 2:08 PM Subject: Re: i shall ask 1 more time (works for me) | so far it hasn't been too bad. Lucky I'm coming from asp so I have an idea. | No payments or anything just a simple who is the highest bidder. People out | here in ky don't have a clue on how much a full fledge dynamic site will | run. They think $500 is too much! | my first real cfm site is a singles site which seems like it will be a lot | more complicated than anything else I have ever done. | but by the time I'm done, I should have a good idea on cfm | | Dave | | - Original Message - | From: Owens, Howard [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 10:50 PM | Subject: RE: i shall ask 1 more time (works for me) | | | An auction is a hell of a thing to learn on ... but I know I was much | smarter after doing our auction site. | | H. | | | -Original Message- | From: Dave Lyons [SMTP:[EMAIL PROTECTED]] | Sent: Monday, February 17, 2003 7:44 PM | To: CF-Talk | Subject: Re: i shall ask 1 more time (works for me) | | thanks Howard, but don't go too any real lengths. This really isn't a | big | auction site. Actually its just a few pages for my competitors clients. | then | if they actually do well on the auction I will build a bigger one. | I was going to do it in asp but since I am learning cfm, I figured, what | the | hell might as well give it a go. | besides I am only getting $200 for it. | Just trying to do more so I can learn. | | Dave | | - Original Message - | From: Owens, Howard [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 10:11 PM | Subject: RE: i shall ask 1 more time (works for me) | | |Dave: | |Here's the auction site I built ... unfortunately, I can't turn the | bidding |on for you because corporate now controls the dev and production site, | but |still thought you might like to see it. I'll see if I can turn | bidding | on |tomorrow some time. | |http://devauction.insidevc.com/ | |H. | | | -Original Message- | From: Dave Lyons [SMTP:[EMAIL PROTECTED]] | Sent: Monday, February 17, 2003 4:23 PM | To: CF-Talk | Subject: Re: i shall ask 1 more time (works for me) | | i'll try that | I cant lay it out exactly like that because of the tables, see: | http://www.real-singles.com/auctioncfm/auction.cfm | and pick an item and you can see what I mean | | I have also set the deadline on the application page since all the | items | will share the same deadline. | | Dave | | - Original Message - | From: CFDEV [EMAIL PROTECTED] | To: CF-Talk [EMAIL PROTECTED] | Sent: Monday, February 17, 2003 9:50 AM | Subject: RE: i shall ask 1 more time (works for me) | | | This is what I used and it works for me. | Once it is 0 time remaining, it shows, too late: | | | cfset deadline = 02/17/2003 9:50 AM | CFSCRIPT | timeleft = DateDiff(s, Now(), deadline); | daystogo = Int(timeleft /86400); | leftover1 = timeleft - (daystogo * 86400); | hourstogo = Int(leftover1/3600); | leftover2 = leftover1 - (hourstogo * 3600); | minutestogo= Int(leftover2/60); | leftover3 = leftover2 - (minutestogo * 60); | secondstogo = leftover3; | /CFSCRIPT | | | | cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND | secondstogo IS 00 | strongTo Late/strong | cfelse | cfoutput | #NumberFormat(daystogo,'00')# Daysbr | #NumberFormat(hourstogo,'00')# Hoursbr | #NumberFormat(minutestogo,'00')# Minutesbr | #NumberFormat(secondstogo,'00')# seconds | /cfoutput | /cfif | | | | | | -Original Message- | From: Dave Lyons [mailto:[EMAIL PROTECTED]] | Sent: Sunday, February 16, 2003 8:50 PM | To: CF-Talk | Subject: Re: i
i shall ask 1 more time
I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time
First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time
How can I determine whether or not a structure actually exists in the first place? A simple isdefined call to the structure throws an error. Could have sworn that would work but it doesn't want to. Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com -Original Message- From: CFDEV [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 5:28 PM To: CF-Talk Subject: RE: i shall ask 1 more time First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time
!--- script to count down time left in current auction --- CFSCRIPT timeleft = DateDiff(s, Now(), deadline); daystogo = Int(timeleft /86400); leftover1 = timeleft - (daystogo * 86400); hourstogo = Int(leftover1/3600); leftover2 = leftover1 - (hourstogo * 3600); minutestogo= Int(leftover2/60); leftover3 = leftover2 - (minutestogo * 60); secondstogo = leftover3; /CFSCRIPT and no its not refreshing i have an example (live) if you need to see that Dave - Original Message - From: CFDEV [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:27 PM Subject: RE: i shall ask 1 more time First off, how are the variables being created? Is the variables refreshed everytime the page is loaded? -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:07 PM To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: i shall ask 1 more time
Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: i shall ask 1 more time
for some reason that throws an error about daystogo being undefined Dave - Original Message - From: Matthew Walker [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:42 PM Subject: RE: i shall ask 1 more time Hard to tell without knowing more about your code, but how about: cfif daystogo LT 1 AND hourstogo lte 0 AND minutestogo lte 0 AND secondstogo lte 0 -Original Message- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: Monday, 17 February 2003 2:07 p.m. To: CF-Talk Subject: i shall ask 1 more time I still got this code that is bugging the crap outta me! here's the code cfif daystogo LT 1 AND hourstogo IS 00 AND minutestogo IS 00 AND secondstogo IS 00 strongimg src=images/ALERT.gif width=18 height=13 To Late/strong cfelse cfoutput#NumberFormat(secondstogo,'00')# seconds/cfoutput/td /cfif the problem is that this is a count down to a set month, day, hour, minute and second. for example when the timer gets to be less that a day it dispalys a message and only the hours, minutes seconds continue to count down. And as each is passed it displays a hurry up message. It all works great until the seconds run out at which point I would like it to just show the messages but instead it starts to count down the hours, minutes and seconds again. how can I make the count down stop after the seconds get to 00? thanks dave !--- doesn't know jack about cfm --- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4