Re: Tip of the Day Applet

2005-08-12 Thread Jochem van Dieten
Connie DeCinko wrote: > Anyone know of a Tip of the Day tutorial, such as this one for Flash, but > just using HTML and CFM? I'd like to pass it along to a junior developer > and looking to save some time building it for them. HTML? CFM? Why would you want to do that when you dan use the trusty

Re: tip of the day

2004-08-12 Thread daniel kessler
> Well it all or mostly worked great.  I made a few small changes, > nothing serious.  Oddly though it seems to periodically output extra > characters in the beginning.  It appears  to occur when the tip_used > column is reset to 0. ok, well I figured that out.  It had extra non-displayed chara

Re: tip of the day

2004-08-12 Thread daniel kessler
Well it all or mostly worked great.  I made a few small changes, nothing serious.  Oddly though it seems to periodically output extra characters in the beginning.  It appears  to occur when the tip_used column is reset to 0. Here's a display of the tips: http://hhp.umd.edu/HHPv1/dbf/tipFunctions/t

Re: tip of the day

2004-08-12 Thread daniel kessler
)#     > >     > #GetTip.Tip# > >    > - Original Message -    > From: daniel kessler    > To: CF-Talk    > Sent: Wednesday, August 11, 2004 2:02 PM    > Subject: Re: tip of the day > >    > ok, I have another TOTD question.  I was told th

Re: tip of the day

2004-08-11 Thread Ewok
ofcourse... there should be a "=" after those CachedWIthin's  : p cachedwithin="#CreateTimeSpan(1,0,0,0)#">   - Original Message -   From: Ewok   To: CF-Talk   Sent: Wednesday, August 11, 2004 6:40 PM   Subject: Re: tip of the day   keep what you got with t

Re: tip of the day

2004-08-11 Thread Ewok
= 1 WHERE TipID = #val(GetTip.TipID)#         #GetTip.Tip#   - Original Message -   From: daniel kessler   To: CF-Talk   Sent: Wednesday, August 11, 2004 2:02 PM   Subject: Re: tip of the day   ok, I have another TOTD question.  I was told that each tip can only be displayed

Re: tip of the day

2004-08-11 Thread Ewok
= 1 WHERE TipID = #val(GetTip.TipID)#         #GetTip.Tip#   - Original Message -   From: daniel kessler   To: CF-Talk   Sent: Wednesday, August 11, 2004 2:02 PM   Subject: Re: tip of the day   ok, I have another TOTD question.  I was told that each tip can only be displayed

RE: tip of the day

2004-08-11 Thread Pascal Peters
f the date in the application scope is less than today's date or there is no tip, start the procedure again Pascal > -Original Message- > From: daniel kessler [mailto:[EMAIL PROTECTED] > Sent: 11 August 2004 20:03 > To: CF-Talk > Subject: Re: tip of the day > >

RE: tip of the day

2004-08-11 Thread Pascal Peters
f the date in the application scope is less than today's date or there is no tip, start the procedure again Pascal > -Original Message- > From: daniel kessler [mailto:[EMAIL PROTECTED] > Sent: 11 August 2004 20:03 > To: CF-Talk > Subject: Re: tip of the day > >

Re: tip of the day

2004-08-11 Thread daniel kessler
ide cache    > - Original Message -    > From: daniel kessler    > To: CF-Talk    > Sent: Wednesday, August 04, 2004 3:59 PM    > Subject: Re: tip of the day > >    > So by caching the query, it assures that everyone gets the same random > TIP for the day or

Re: tip of the day

2004-08-05 Thread daniel kessler
kessler    > To: CF-Talk    > Sent: Wednesday, August 04, 2004 3:59 PM    > Subject: Re: tip of the day > >    > So by caching the query, it assures that everyone gets the same random > TIP for the day or just that particular machine? >    > > well there are a

Re: tip of the day

2004-08-04 Thread Ewok
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/appfra29.htm it will cache it for everyone, its a server side cache   - Original Message -   From: daniel kessler   To: CF-Talk   Sent: Wednesday, August 04, 2004 3:59 PM   Subject: Re: tip of the day   So by caching the query, it

Re: tip of the day

2004-08-04 Thread daniel kessler
----- Original Message -    > From: daniel kessler    > To: CF-Talk    > Sent: Tuesday, August 03, 2004 1:36 PM    > Subject: Re: tip of the day > >    > > Id stick with ID and tip, pull a random one each time and cache the >    > > query for 24 hours.

RE: tip of the day

2004-08-04 Thread Ian Tait
: Ewok [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 August 2004 9:40 AM To: CF-Talk Subject: Re: tip of the day well there are a couple of ways to get a random record... as long as ou are not using access there is a RAND() function to do it... something like this if i remember correctly select

RE: tip of the day

2004-08-04 Thread Michael Kear
[mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 August 2004 9:40 AM To: CF-Talk Subject: Re: tip of the day well there are a couple of ways to get a random record... as long as ou are not using access there is a RAND() function to do it... something like this if i remember correctly select * from table

Re: tip of the day

2004-08-03 Thread Ewok
: Re: tip of the day   > Id stick with ID and tip, pull a random one each time and cache the   > query for 24 hours.   That brings up some questions.  So, I pull a random tip each day, not a random tip each page refresh.  So what pulls the random tip and sets it as the TOTD?  I've a

Re: tip of the day

2004-08-03 Thread daniel kessler
> Id stick with ID and tip, pull a random one each time and cache the > query for 24 hours. That brings up some questions.  So, I pull a random tip each day, not a random tip each page refresh.  So what pulls the random tip and sets it as the TOTD?  I've also not yet looked into caching queries. 

Re: tip of the day

2004-08-03 Thread Ewok
Id stick with ID and tip, pull a random one each time and cache the query for 24 hours. as for dates, I like to break them into to 3 parts when using a form to enter them.. form.Date_Day, form.Date_Month, and form.Date_Year then piece them back together in a cfset to get the date. while catching