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:

Roundup (2001) ANother SHOWIF problem (1997) Banners and sort of random display (1997) Purchased cart being overwritten (1997) Adding To items to cart at once (1999) Can [writefile] files be served thru webcat? (2000) catagories (1997) Fwd: Problems with Webcatalog Plug-in (1997) ThisURL (2000) Add to Cart & List of Products (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) WebCat2b15MacPlugin - [protect] (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) WebCat2.0 acgi vs plugin (1997) Searching (2005) Grant, please help me ... (1997) SEARCH RESULTS (1998) ODBC-Interface (2000) Protect (1997) post (1997)