Go Back   OXYLUS Flash Board > Support > Dark - Image Folio v2

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2008, 12:15 AM
Junior Member
 
Join Date: Jul 2008
Posts: 4
Default Update: Using Lightbox 2 with Image Folio v2

Ok... I found out "how" to call Lightbox2 from a Flash movie clip.
(Execute Lightbox Scripts From Flash: Part Deux at Codefidelity)

I can even call Lightbox from Image Folio if I use a static call:

If I do the following I can call Lightbox2 from Image Folio...

Code:
import oxylus.folio.Image;
Image.clickHandler = function(dat){
	// write the code insde this handler function; you can identify each image by its data ("dat" variable)
	getURL("javascript:GroupDelegate('image1')");
}
But, if I try to do so by placing a variable in the data.xml file and calling it from Image Folio v2 by using the getURL(dat) it will not work.

Code:
import oxylus.folio.Image;
Image.clickHandler = function(dat){
	// write the code insde this handler function; you can identify each image by its data ("dat" variable)
	getURL(dat);
}

My data.xml file has the following in the data node:
HTML Code:
data= "& #34;(javascript:GroupDelegate('image1')& #34;)"
I have also tried
HTML Code:
data="& #34;javascript:GroupDelegate('image1')& #34;"
and
HTML Code:
data="javascript:GroupDelegate('image1')"
neither of which seem to work.

*note: I had to add a space & and # in the html code for the quotes in the lines above because it kept converting to " on your forum.

The call must fire off a Javascript function in the containing html file:

HTML Code:
	<script type="text/javascript">
	function GroupDelegate(id) {
		var objLink = document.getElementById(id);
		Lightbox.prototype.start(objLink);
	}
	</script>
But, I think that getURL(dat) is trying to append http://www. to the front of it, so that it is calling something like this.

HTML Code:
http://www.("javascript:GroupDelegate('image1')");
I'm not sure how to fix it.

Can you please help me? Thanks!!!

Link to my online testing page:
Kenetic Images: Portfolio Lightbox Test

Last edited by Kenet; 07-24-2008 at 12:38 AM.
Reply With Quote
  #2 (permalink)  
Old 07-28-2008, 02:16 PM
Super Moderator
 
Join Date: May 2008
Posts: 518
Send a message via Skype™ to Adrian
Default

This is the right way to do it:

Code:
data= "javascript:GroupDelegate('image1');"
Reply With Quote
Reply

Tags
data.xml, geturl, geturl(dat), javascript, lightbox

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.