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 a listfiles, and then use a search on that database to find the two image file names. The search would find all records, sort in random order, and return max=2 records.You can hit a URL to populate the database as often as you like: once a day, whenever you think of it, or once each time you're looking to put up those two random images.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. WIDGET: random image generator ( Donovan Brooke 2007)
  2. WIDGET: random image generator ( Donovan Brooke 2007)
  3. Re: Random Images (Nicolas Verhaeghe 2000)
  4. Re: Random Images (Nicolas Verhaeghe 2000)
  5. Random Images (Gregory Scott 2000)
  6. Re: Generating a random image, but avoiding repeated images. (jpeacock@univpress.com 1999)
  7. Re: Generating a random image, but avoiding repeated images. (Conrad Hubbard 1999)
  8. Generating a random image, but avoiding repeated images. (Christopher Feyrer 1999)
  9. Re: Random Image (PCS Technical Support 1998)
  10. Random Image (Mícheál O Sé 1998)
  11. Re: random images (Raymond Hatch 1997)
  12. Re: random images (Grant Hulbert 1997)
  13. random images (Raymond Hatch 1997)
>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 a listfiles, and then use a search on that database to find the two image file names. The search would find all records, sort in random order, and return max=2 records.You can hit a URL to populate the database as often as you like: once a day, whenever you think of it, or once each time you're looking to put up those two random images.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/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)