DMXzone Lightbox Support Product Page

Not adding file script links to page

Reported 09 Jul 2012 07:23:56
1
has this problem
09 Jul 2012 07:23:56 Neo 314 posted:
I am applying the behavior to open a dmx lightbox to a page, and the following code is added, but no script includes. Obviously, it does not work as is.

<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('../galleryPlayer.php', {}, window);return document.MM_returnValue">


I tried it twice, posted this message, and then refreshed the file list because I could not see the dmx folder, and suddenly the javascript links were added to the page. Wierd.

Replies

Replied 09 Jul 2012 07:27:11
09 Jul 2012 07:27:11 Teodor Kuduschiev replied:
Hello,

Can you please describe what exactly behavior are you applying? Is it through any other extension?
Replied 09 Jul 2012 08:40:32
09 Jul 2012 08:40:32 Neo 314 replied:
I have a page with a recordset of image galleries. I make the title of the gallery a link to open a dmx lightbox to a url for the player.

The code above is added to the page (except the openDMXzoneLightbox function is in the link made by the gallery title).

No script file liknks were added at all.

I tried a second time on a blank page, and again, no scrip files were added to the page, just the code above.

After I write my post, I refresh the files window in DW, and behold, the script include files are suddenly added.

The file includes below were not initially added to either page.

<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>


Before I pushed the refresh button in the files tab, the dmx folder was not visible. It almost behaved like the problem was that DW did not know the files were added to the site and therefore, did not add the includes.
Replied 11 Aug 2012 21:24:05
11 Aug 2012 21:24:05 richard friend replied:
I am having the same problem, I have added a lightbox to a page but the DMX folder isn't being added.

Reply to this topic