These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
How can I get a list of my albums? Is there a JavaScript method I can use? I'm not using Director so I could read straight from the XML file, but I would rather use a Slideshowpro method if one exists.
thanks,
Offline
I figured it out. Here is my code:
I'm using jQuery to simplify things, so if you want to use my code you will need the jQuery core.
<script type="text/javascript">
function onSlideShowProReady(swf) {
if (swf) {
ssp = document.getElementById(swf);
ssp.addEventListener("galleryData","onGalleryData");
}
}
function onGalleryData(o) {
for (i=0;i<=o.data.length;i++) {
$('#albums').append("<li><a href='' class=" + o.data[i][0].id + ">" + o.data[i][0].title + "</a></li>")
}
}
</script>
Offline