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:
listfiles, moving files (1998)
Re:2nd WebCatalog2 Feature Request (1996)
Test (2003)
HELP WITH DATES (1997)
[searchString] (1997)
Cobalt RaQ2 and WebCatalog: who uses it? (2000)
Using Plug-In while running 1.6.1 (1997)
RED QUESTION MARK (1999)
WebCommerce: Folder organization ? (1997)
%d/%m/%Y [math] and [date], [math date] problems (2003)
[OT] Any perl gurus out there? (2006)
Interfacing WebMerchant to www.fedex.com (1997)
[isfile] ? (1997)
Search design (1997)
No Line Breaks from OSX server (2002)
Banners and sort of random display (1997)
NetSplat and WebCat2 (1997)
How to Display text in empty fields (1997)
textarea to page display (1998)
Search for starts with and ends with? (2003)