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