DMXzone Lightbox Support Product Page

This topic was archived

Videos in lightbox window

Reported 28 May 2009 13:37:52
1
has this problem
28 May 2009 13:37:52 Brian Coyle posted:
We want to be able to call videos up in the lightbox windows.
I have done that successfully at www.waterwell.co.uk/test2009.html
This works as long as you close down the wndow and open the next. But if you use the forward button the nex video opens up on top and doesn't close the previous one - any advice?

Replies

Replied 28 May 2009 13:54:49
28 May 2009 13:54:49 Teodor Kuduschiev replied:
Hello Brain,
Try putting this code in the head of your page:

<script language="javascript" type="text/javascript">
$(function() {
 // wait for lightbox instance
 (function() {
  if (!DMX.Lightbox.instance) {
   window.setTimeout(arguments.callee, 800);
   return;
  }
  
  DMX.Lightbox.instance.addEventListener('contentLoaded.Test Gallery', function(){
   DMX.Lightbox.instance.refresh();
  });
 })();
});
</script>

This will refresh your lightbox on loading each of your gallery items.
Replied 28 May 2009 16:57:44
28 May 2009 16:57:44 Brian Coyle replied:
Thanks, unfortunately that didn't slve it - I have removed the forward and configuration buttons for the time being, so that all the user can do is close - which prevents the multi-video issue arising.
Replied 29 May 2009 13:29:49
29 May 2009 13:29:49 Miroslav Zografski replied:
Hello Brian,

Well, that was just an idea of a workaround. My observation shows that when Lightbox iframe is reloaded the movie that left from previous slide disappears. However, we are working on additional plug-ins for that extension to allow it to preview movies, flash and other components of that kind without the need to place them on a page first.

Regards,

Reply to this topic