problem with dynamically loaded content (jquery dhtml)
| Project: | jQuery Lightbox Plugin (balupton edition) |
| Version: | 1.1.1-final |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | balupton |
| Status: | closed |
Jump to:
i just integrated the lightbox into my page.
the page is loading the lightbox-gallery dynamically with jquery as i do with all my other pages.php.
it works fine except that i got one problem:
if i click the gallery btn a second time after loading it, the lightbox automatically starts itself without a picture to load.
the problem is, that i have to include the lightbox.js into gallery.php which is loaded as a child of index.php.
if i include lightbox.js into the index.php nothing happens and the pictures redirect me as they do without lightbox installed...
sorry my bad english, as you may have noticed this is not my mothers tongue and combined with the fact that i started to code about 4 month ago my vocabulary is very very limited, so if you could help me anyhow i would be glad.
if i find the problem and am able to fix it myself i will post here how i did that for others.
greetings and thanks for the great work, i just love how the pictures look.
sorry for setting the priority to critical but in my opinion its critical :)

Comments
#1
hi guys.
i just solved my problem by inserting the javascript into index.php and calling the function
jQuery.Lightbox.relify();
every time i load the gallery.php
sorry for asking but yesterday in the morning i just didnt know where to start :)
got some geeky help and now it works fine.
greetings
manarius
#2
Glad you got it working, could you provide a link to it so that I can see how you are dynamically loading in the lightbox, perhaps there is something I can change so it all works automatically.
#3
Considered closed as the problem has been fixed.