/    Sign up×
Community /Pin to ProfileBookmark

lightbox not working

Hey everyone, I found this Lightbox v2 scipt and thought it looked nice, and easy, so I thought I’d add it to my site.

I did exactly what the very minimal instructions told me to do, but it’s not working. I keep getting IE giving me a javascript error (in the really detailed, descriptive way that it does) on line 88 – ‘Element is undefined’. Any ideas what I could be doing wrong?

My test page is at [url]http://www.occasionalweb.com/test[/url] – when you click on the photo I had rather hoped lightbox would do its thing. Alas it’s not to be…

Any help most gratefully received.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@jpmoriartyauthorFeb 26.2007 — Okay half way there - it turns out you've got to call the javascripts in a particular order, which I've now corrected and it works.<i>
</i> &lt;script src="lightbox2.02/js/scriptaculous.js?load=effects" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="lightbox2.02/js/prototype.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="lightbox2.02/js/lightbox.js" type="text/javascript" &gt;&lt;/script&gt;
&lt;script src="lightbox2.02/js/effects.js" type="text/javascript"&gt;&lt;/script&gt;


However, I'm now getting an error in IE: LIne 33, Char 7, "Exception thrown and not caught". Any ideas how to correct this?
×

Success!

Help @jpmoriarty spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...