dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: need an embedded image search function

  1. #1
    Join Date
    Mar 2012
    Posts
    15

    need an embedded image search function

    I'd like to find a search function that will comb through a specific folder of images on our site and then display, on a web page, all the images whose file names fit the search parameters provided.

    All of the images in the folder are the same size (72x72px thumbnails) and their names all share the same format: search-term-1_search-term-2_ ...search-term-n_S##.jpg . The trailing S##.jpg string is common to all the images, except for the two-digit number which is the unique identifier for each image.

    I'd like the found images to be displayed on a page in a fixed grid (say, 6 images wide by 4 deep). Search results will fill whatever portion of that grid is necessary, leaving the rest of the grid empty. Searches that return more than maxImages (24 in this example) would fill the grid and present 'page 1 of n' and nav arrows, etc. Unsuccessful searches would display a comment - check your spelling; make your search less specific, try again, etc.

    Each displayed image needs to include a link to a page with information about the image. All of those link URLs are listed in a text file and they all share the same format: aUniquePageName_S##.html . The trailing S##.html is common to all the URLs, except for the two-digit number which is the unique identifier each URL shares with its thumbnail image above.

    Does this exist somewhere? Is this something a JavaScript expert could help us cobble up?

    Any help appreciated. Thanks - Jim

    (The search function, as described above, is slightly oversimplified but I didn't want to beat up this forum post.)

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,670
    you need php for that

  3. #3
    Join Date
    Mar 2012
    Posts
    15
    That works for me, if that's best. Do I need to post this to a different forum for php? If so, can you suggest one? Thanks.

  4. #4
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,670
    there's a dropdown at the right bottom of the page named Forum jump. choose PHP under "Server-side development" and you're done )

  5. #5
    Join Date
    Mar 2012
    Posts
    15
    Thanks Padonak - I'll go pester them.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles