DMXzone Lightbox Support Product Page

Cannot get the FireFox browser will not Play video

Asked 01 May 2012 03:09:08
1
has this question
01 May 2012 03:09:08 Lawrence Mound posted:
Since the recent updates to the FireFox Browser, I cannot get the video to play through lightbox. It works fine in Chrome, Explorer, Safari, etc. but not FireFox. Any thoughts on what might be happening. It worked okay before the more recent updates to the browser.

Replies

Replied 03 May 2012 06:55:21
03 May 2012 06:55:21 Teodor Kuduschiev replied:
Hello,

Please provide a link to your page.
Replied 03 May 2012 12:13:26
03 May 2012 12:13:26 Lawrence Mound replied:
There are actually several links, but here are a few. They work fine when viewed in Safari, Chrome, Explorer etc. But stopped working just recently in FireFox. I went and checked out other sites I did from a while back with the same result. This is also consistent across OS too. Same problem on Mac and PC.

www.netboss.com/htm/netboss_solution_demos.htm

www.netboss.com/htm/netboss_acuity.htm

www.netboss.com/htm/netboss_business_opt.htm
Replied 07 May 2012 06:15:53
07 May 2012 06:15:53 Vulcho Vulev replied:
Hello Lawrence , there is a script error on your page, can you please edit the following lines of code:
<script language="JavaScript1.2" type="text/javascript" src="../mm_css_menu.js"></script>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<!--[if IE]><script type="text/javascript" src="../dmx/lib/excanvas-compressed.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="../dmx/widgets/Lightbox/styles/default/style.css" />
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../dmx/dmx.core.js"></script>
<script type="text/javascript" src="../dmx/widgets/Lightbox/dmx.lightbox.js"></script>


and edit them the following way:
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../mm_css_menu.js"></script>
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<!--[if IE]><script type="text/javascript" src="../dmx/lib/excanvas-compressed.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="../dmx/widgets/Lightbox/styles/default/style.css" />
<script type="text/javascript" src="../dmx/dmx.core.js"></script>
<script type="text/javascript" src="../dmx/widgets/Lightbox/dmx.lightbox.js"></script>
Replied 07 May 2012 12:03:22
07 May 2012 12:03:22 Lawrence Mound replied:
Okay that resolves this particular issue. but is this something that is going to occur every time I use the lightbox extension? because it seems to happen anytime I use it. This is not a page specific issue. Please advise.
Replied 07 May 2012 12:20:27
07 May 2012 12:20:27 Vulcho Vulev replied:
Hello Lawrence.

The problem was that you was trying to use a script before included scriptlibrary, and that cause a multiply javascript errors on the page, causing also our lightbox to stop working. in the future just make sure that the following line of code:
<script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script>

is included above any javascript line of code you use.

Best regards: Vulcho.
Replied 07 May 2012 23:03:16
07 May 2012 23:03:16 Lawrence Mound replied:
I replaced the code as you directed and it has not resolved the problem at all. Any other thoughts? I'm at a loss. It's a little confusing because it used to work fine before the recent updates to FireFox. Any advice would be greatly appreciated.
Replied 15 May 2012 11:51:09
15 May 2012 11:51:09 Teodor Kuduschiev replied:
Hi Lawrence,

I see you have an image, then you have created an image map region covering your whole image, then you have a behavior attached to this map region that opens the lightbox.

Why don't you try using lightbox directly on the image - click on the image and click on the "Lightbox Link" icon in the insert bar.

Reply to this topic