Results 1 to 3 of 3

Thread: help with light box image viewer

  1. #1
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help with light box image viewer

    light box image viewer
    http://www.dynamicdrive.com/dynamici...tbox/index.htm

    I'm at a loss w/ this one. this is a very nice/elegant and i thought simple picture viewer. however i seem to experiencing a problem i can't figure the logic behind. i set up this script on a very plain html page(1-table divided into 9 columns and 9 rows to form a grid of boxes for my thumbnail images), the overall idea here was i needed to show multiple categories of images on one page, so i created these simple table pages which are loaded into an iframe in my main gallery page. everything works great when i launch the site from my harddrive, but as soon as the files are uploaded to my server light box starts getting quirky. basically it will only load the first image(first row, first column) when you click on any of the others the status bar just runs indeffinetly w/out ever loading the full size image. i though this might be a conflict w/ th iframe but i have the same problem if i just launch the plain page (one table&thumbnails) on it's own. all the file paths are correct, it's finding the files just not loading them. any thoughts, suggestions, comments please thank you

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I saw this happen once before recently with this script (and countless times with others). With this latest case, the symptoms were identical. The problem that time, and it may well be the case here as well, was that although the image paths and names were correct, their case (upper and lower case) did not agree with the code. This will not be a problem on most local machines but, on the web case does matter. So, for instance if your markup says:

    href="images/photo_12a.jpg"

    but the filename is actually:

    photo_12a.JPG

    On a live installation, those are two different files, so the script cannot find it. A good way to test it is to put the absolute path to the image in your browser's address bar, if you get a file not found, but the path and filename are correct, the case is most likely wrong. I've seen all kinds of variations:

    Photo_12a.jpg

    PHOTO_12A.JPG

    photo_12A.jpg

    I could go on and on but the main point is that, once you go live, these are all different files as far as the script is concerned. Locally (on most computers), they are identical.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    allright, well that mosdef something i'll check out
    thanx for the help

Bookmarks

Posting Permissions

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