Skip navigation
Currently Being Moderated

Lightbox works on computer but not on web...

Apr 3, 2012 6:27 PM

Tags: #javascript #links #lightbox

Help!

 

I have used Lightbox2 and other lightboxes before, so I am a little used to how they work.

 

I wanted to not clutter my site any more than necessary, and so I left the Lightbox files in the original Lightbox2 folder; my files are outside the folder.

 

I corrected the links to the javascript and css files on my page.

 

The page previews correctly on my computer; but, when uploaded to the web, Lightbox2 does not work.

 

Why would Lightbox work correctly on my computer, but not on the web? Here is a link to one of the pages in question:

 

http://www.oldmanmountain.com/Pages/RackPages/RearRacks.html

 

Another question...Lightbox says we should check the links in the lightbox.js file to make sure the loading and close box links are correct. How do I point to these files? From the javascript file? or from the page file? I have tried everything and cannot get the close box to show on my computer (let alone on the web, where Lightbox doesn't seem to work at all).

 

Another reason for wanting the Lightbox files in their own folder is that I used to put the Lightbox files relative to the page that Lightbox was used on so I wouldn't have to change the links. I would rather have just one Lightbox folder for the entire site, and I would prefer to have it in its own folder. I posted this question on StackOverflow, but no one answered.

 

Thank you!

 
Replies
  • Currently Being Moderated
    Apr 3, 2012 11:28 PM   in reply to JustBob

    Hi,

     

    in my IE8 your lightbox works (after a while of waiting) like this:

     

    drLightb.jpg

     

     

    I only miss the both buttons: "closelabel.gif" and "loading.gif".

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2012 2:56 AM   in reply to JustBob

    Hi Bob(?),

     

    I would like to draw attention to another aspect: Lightbox actually responds very sensitively to deeper nesting and wide ramifications of directories, for example these things: ../../ etc. For this reason I created for all my lightbox-applications one single lightbox-directory, placed directly in the main directory. There you will find all my lightbox-php-html-files and all the subdirectories for the corresponding images.

     

    ... and from there it worked like a charm.

     

    Hans-Günter

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points