...

View Full Version : Javascript dependency problem.



megafonico
08-18-2008, 10:59 PM
Hello,

I am having a BIG problem getting two JavaScripts to work.
Before you point me out to: http://www.javascriptkit.com/javatutors/multiplejava.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/dynamicindex4/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?....

Philip M
08-19-2008, 07:57 AM
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.

_Aerospace_Eng_
08-20-2008, 12:43 AM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum