Results 1 to 3 of 3

Thread: Error with Lightbox Image Viewer 2.03a

  1. #1
    Join Date
    Nov 2006
    Location
    Washington State
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Error with Lightbox Image Viewer 2.03a

    1) Script Title: Lightbox image viewer 2.03a

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...box2/index.htm

    3) Describe problem:

    I've installed this script on two different servers now. The first one went without a hitch. The second one hasn't worked and upon checking the error log in firefox, I receive the following error:

    Effect is not defined.
    lightbox.js (line 374)

    I added the javascript includes in the same order as the instructions, and I've clicked each link (again through firefox, source code) and verified that all of the files are there. Can someone tell me what's going on? I didn't think that javascript could differ between servers like PHP or MySQL versions could, however I just can't figure out why it doesn't work for me.

    Here's the link in case you need it: http://www.hystericalwebdesign.com/about/

  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

    Lightbox 2.03a requires the effects.js file. Yours should be here:

    http://www.hystericalwebdesign.com/js/effects.js

    But it's a 404 not found. This file comes in the distribution archive (lightbox2.03a.zip) that you should already have. Or you could download it from here:

    http://dynamicdrive.com/dynamicindex.../js/effects.js

    (right click and 'save as'). However you get it, upload it to your:

    http://www.hystericalwebdesign.com/js/

    folder and that error will go away.

    I know this file can be easy to miss because it's not specifically linked to from the external script tags that you put on your page. Its link is created by the scriptaculous.js script when scriptaculous.js is invoked like so:

    Code:
    <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
    In any case, you need it, so get it up there.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    portkey (03-05-2010)

  4. #3
    Join Date
    Nov 2006
    Location
    Washington State
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Well I can't believe I spent an hour on something so simple. Thank you, I can't believe I missed that.

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
  •