Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript dependency problem.

    Hello,

    I am having a BIG problem getting two JavaScripts to work.
    Before you point me out to: http://www.javascriptkit.com/javatut...iplejava.shtml, I have already read it and undestood it (at least partially) but I do not believe that the problem I am having relates to that.

    The two scripts in question are:

    Lokesh Dhakar's fantastic Lightbox2
    http://www.lokeshdhakar.com/projects/lightbox2/

    and

    DynamicDrive's Image Thumbnail Viewer II
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    My (decidedly crude) attempt to have them both work together can be found here:

    http://www.worldwidewatchesinc.com/vsinclaire/2474

    I have to say it is rather critical for me to get these two to work together.

    I believe that the scripts gets called when the page loads and prepare to substitue (or insert) HTML at certain locations of the page, but once those locations are determined, the scripts do not attempt to reevaluate the page, so when the other script dynamically replaces certain markup, the first script does not reevaluate the need to generate more code...
    Does that make sense at all?....

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,247
    Thanks
    203
    Thanked 2,556 Times in 2,534 Posts
    Quote Originally Posted by megafonico View Post
    I believe that the scripts gets called when the page loads and prepare to substitue (or insert) HTML at certain locations of the page, but once those locations are determined, the scripts do not attempt to reevaluate the page, so when the other script dynamically replaces certain markup, the first script does not reevaluate the need to generate more code...
    Does that make sense at all?....
    Yes, it does make sense, and what it really means is that these two sophisticated scripts cannot be used together without quitedrastic modifications. I am sorry to say that I cannot make any suggestions - perhaps someone who has more experience of these particular scripts can comment further.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Okay so what did you want to happen? Did you want to change the large image and bring up a lightbox of that image or is there another section on your site that you are trying to use lightbox?
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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