Re: Random Image
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 20452
interpreted = N
texte = >Is it possible to do insert a random image in a page based on a listfile>context. i.e. I have a folder of images and I would like to search the>folder and return 2 random images.>Any help appreciatedThe best way would be to populate a database with the results of alistfiles, and then use a search on that database to find the two imagefile names. The search would find all records, sort in random order, andreturn max=2 records.You can hit a URL to populate the database as often as you like: once aday, whenever you think of it, or once each time you're looking to put upthose two random images.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Is it possible to do insert a random image in a page based on a listfile>context. i.e. I have a folder of images and I would like to search the>folder and return 2 random images.>Any help appreciatedThe best way would be to populate a database with the results of alistfiles, and then use a search on that database to find the two imagefile names. The search would find all records, sort in random order, andreturn max=2 records.You can hit a URL to populate the database as often as you like: once aday, whenever you think of it, or once each time you're looking to put upthose two random images.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
PCS Technical Support
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCat2b15MacPlugin - [protect] (1997)
.html processing? (1998)
[WebDNA] Debian Lenny, Lighttpd and WebDNA FastCGI ... (2010)
[MATH] and Dates (1998)
Re:2nd WebCatalog2 Feature Request (1996)
[OT] Airport Problem (2003)
errormessages.db (1997)
Re1000001: Setting up shop (1997)
Strange error (2000)
cart (1997)
Re:trouble (1997)
WebCatalog can't find database (1997)
remove.htm from result (2005)
database files in secure folder (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
Notepad problems (1998)
[WebDNA] Difference in time calculations (2017)
WebCat2 beta 11 - new prefs ... (1997)
Using Cookie for client specific info? (1997)
problem serving foreign languages text (1997)