Hi Viebig
Thanks once again. I am getting closer but not quite there yet.
CODE IS
****************************************************************
// var data = new Array('1.jpg','2.jpg','3.jpg','4.jpg','5.jpg');
var data = new Array();
data = (
{foreach from=$cgsimple->get_children($page_alias,'0') item='child' name=children}
{if $smarty.foreach.children.last}
'{$cgsimple->get_page_content($child.alias,'Photo_Name')}'
{else}
'{$cgsimple->get_page_content($child.alias,'Photo_Name')}',
{/if}
{/foreach}
);
{literal}
alert(data);
window.addEvent('domready', function(){
var myShow = new Slideshow('show', data, { captions: true, controller: true, delay: 4000, duration: 2000, height: 515, hu: '/uploads/photos/london/landscape/1000pix/', width: 774 });
});
//]]>
{/literal}
***************************************************************
OUTPUT IS
// var data = new Array('1.jpg','2.jpg','3.jpg','4.jpg','5.jpg');
var data = new Array();
data = (
'1.jpg',
'2.jpg',
'3.jpg'
);
alert(data);
window.addEvent('domready', function(){
var myShow = new Slideshow('show', data, { captions: true, controller: true, delay: 4000, duration: 2000, height: 515, hu: '/uploads/photos/london/landscape/1000pix/', width: 774 });
});
//]]>
***************************************************************
The alert on data only give 3.jpg whereas if I use the manually array var data = new Array('1.jpg','2.jpg','3.jpg','4.jpg','5.jpg'); the alert shows all objects.
Any idea?
See
http://www.clivegrylls.com/photos/londo ... landscape/
This is how it is supposed to work
http://www.clivegrylls.com/photos/india ... landscape/