/    Sign up×
Community /Pin to ProfileBookmark

lightbox+ajax-loading page problem

Hola,
Recently, I’ve tried to use FancyBox (a zooming lightbox script – affects every image link of a given parent id) on a page where contents are loaded dynamically with jquery.

I init fancybox at the loading of the needed section – then, I click on the image link, fancybox’s darker overlay appears for a sec, but then the target image itself loads (as if no script would be there). As it seems, FB was initalized, but is somehow not working… js debug shows nothing wrong.

Since the whole page is loaded dynamically with jquery, I can’t really separate the problem – the script is working good when it’s in static context. Before, I used a quite similar script FancyZoom, that worked without problem…

I’ve uploaded a working template below, I would be very grateful if someone could give it a quick peek:
[url]http://autotveszek.hu/temp.zip[/url]
(on the site click the green, then the purple rectangle. the init can be found in js/script.js, in InitThree function)

Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@poisonborzauthorMar 05.2009 — ...anyone?
×

Success!

Help @poisonborz 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.18,
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,
)...