RE: Random Product, with a twist?

2002-10-02 Thread Ken Brocx

You could just put a "featured" bit-field in the table then call a page via scheduled 
task to set a random one to "featured".
Ken
 
 

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 23, 2002 11:39 AM
To: CF-Talk
Subject: Random Product, with a twist?

What would be the easiest way to display one random product
pulled from a database every 24 hours without session or
client variables? Each page refresh would deliver the same
content for a 24 hour period.

Could this be done based on the "applicationtimeout"
setting from the  tag? My default timeout is
24 hours. (applicationtimeout="#CreateTimeSpan(1,0,0,0)#")

TIA...Ché


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
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.



Re: Random Product, with a twist?

2002-09-23 Thread Paul Giesenhagen

Create a small application that populates a table based on a product id and
set it from 1-365 (for days of the year) ... then use the cf function
#DayofYear()# to get todays number then just keep displaying that product
id.

It may not be exactly what you are looking for, but it would give you some
control over the products that are added to the list as well.

It doesn't need session variables or application variables either.

I am sure there are other solutions

Good Luck
Paul Giesenhagen
QuillDesign

- Original Message -
From: "Che Vilnonis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 1:38 PM
Subject: Random Product, with a twist?


> What would be the easiest way to display one random product
> pulled from a database every 24 hours without session or
> client variables? Each page refresh would deliver the same
> content for a 24 hour period.
>
> Could this be done based on the "applicationtimeout"
> setting from the  tag? My default timeout is
> 24 hours. (applicationtimeout="#CreateTimeSpan(1,0,0,0)#")
>
> TIA...Ché
>
> 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists