Hi,
I got this problem with Lightbox2: When you leave the box by clicking on the page the fade-out repeats itself for the amount of time you've viewed a lightbox.
The situation:
I got a couple of video's displayed inside a lightbox, everything works fine there. Then, you exit the lightbox by clicking somewhere on the site (not with the X-button or by pressing esc). When it is the first video you've watched, it all goes well. Then, you click on another videolink, a lightbox appears, you exit it again and the fade-out repeats itself once. Then, another video, you exit it again and the fade-out repeats itself twice. And so on...
What's the problem? And more important, how can it be fixed?
Comments
Comment #1
stella commentedI can't reproduce this issue. I've tried it in IE7 and Firefox 3 on Windows XP. What browser and platform are you using?
Does it only happen with videos or does it also happen with images? How is the lightbox generated? Are you using rel="lightvideo" or is this one of the automatically handled videos, like with emfield or acidfree videos?
Cheers,
Stella
Comment #2
Eiersneijer commentedI use Firefox 3 on Windows XP, but I get the problem with IE7 as well. So I don't think it's browser-related.
I only use Lightbox for video's, so I don't know if it gets this problem with images. If you want, I can try this out. The lightbox uses rel="lightvideo".
Comment #3
stella commentedCan you send me a link to your site where I can see it happening? My contact form is enabled if you wish to do so privately.
Cheers,
Stella
Comment #4
Eiersneijer commentedThe site operates off-line at the moment, so I can't show it to you. However, I've attatched a video of the event so you can clearly see what I mean.
Watch it here:
http://www.youtube.com/watch?v=0oNF8i9BQ5U
Comment #5
stella commentedI need to see the site so I can look at the page source. If you can't give me access can you do the following for me:
Which type of video are you displaying in the lightbox (e.g. Google video, youTube, wmv, etc)?
Cheers,
Stella
Comment #6
Eiersneijer commentedI just found one thing out that might help solving the problem:
The error now occurs on the frontpage, where several nodes are displayed with links to a lightbox containing a video. There are two nodes now, as a test. One got several lightboxes with videos from [url=http://www.blackcabsessions.com/sessions.php]The Black Cab Sessions[/url], the other got a video from [url=http://onderinvloed.com/home/2008/06/session-davie-lawson-uk/]Onder Invloed[/url]. I only get this error when I first open the lightbox from The Black Cab Sessions, and [i]then[/i] opening the one from Onder Invloed. Even when I add a node with a video from, say, YouTube, it only gets the error with the video from Onder Invloed. Could it be that this player just screws with the javascript?
Anyway, I made a dummy user so you can check the page. I'll send the log-in to your account.
Comment #7
stella commentedTry the attached patch. I don't know if it will work because I still can't reproduce it on my site but I'm hopeful that it will. After applying the patch ensure that you clear your browser cache so it uses the new version of the javascript.
Cheers,
Stella
Comment #8
Eiersneijer commentedI can test this monday (can't run the patches myself). Thanks in advance, I'll come back here to say if this solves the problem
Comment #9
stella commentedHave you had a chance to test this out yet?
Cheers,
Stella
Comment #10
Eiersneijer commentedWell.. the technician (is that english?) runned it, and it seems to have solved the problem. Sorry I haven't updated this topic. I've been really busy last week.
Thanks for this patch and your help!
Comment #11
Fiasst commentedThis patch works. Thanks :]
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella