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:

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)