DMXzone Lightbox Support Product Page
Answered
Opening a Lightbox on page load
Asked 17 Feb 2014 18:57:36
1
has this question
17 Feb 2014 18:57:36 Gerald Deloff posted:
Hi, I tried doing this from the answered question on another topic in this forum (www.dmxzone.com/support/16607/topic/56910). I made my code similar to the sample code, but it just doesn't work. I have all the DMX includes uploaded because a normal link with Lightbox works fine. Here is my test page and code if you have any suggestions. Thanks.www.tiogadowns.org/test.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!--[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> <script type="text/javascript"> function openDMXzoneLightbox(arg, options, context) {//v1.2 context = context || window, options = options || {}; if (context.DMX && context.DMX.Lightbox) { context.DMX.Lightbox.open(options.plugin || "", arg, options); document.MM_returnValue = false; } } </script> </head> <body onLoad="openDMXzoneLightbox('allin.php', {}, window);return document.MM_returnValue"> </body> </html>
G
Replies
Replied 21 Feb 2014 14:56:21
21 Feb 2014 14:56:21 Teodor Kuduschiev replied:
Hello Gerald,
Can you please change the Content Type settings to: URL instead of auto?
Can you please change the Content Type settings to: URL instead of auto?
Replied 21 Feb 2014 16:25:48
21 Feb 2014 16:25:48 Gerald Deloff replied:
Hi Teodor, I'm not sure where you want me to do this?
I have the test link back up
www.tiogadowns.org/test.php
I have the test link back up
www.tiogadowns.org/test.php
Replied 21 Feb 2014 16:27:13
21 Feb 2014 16:27:13 Teodor Kuduschiev replied:
In the UI of the ligthbox, where you select which page to load.
Replied 21 Feb 2014 16:32:21
21 Feb 2014 16:32:21 Gerald Deloff replied:
That worked, thanks!