These forums are provided for community interactions only. For official support please submit a support ticket.

You are not logged in.

#1 2010-10-21 21:14:58

000justin000
New Member
Registered: 2010-09-15
Posts: 12

Retrieve list of albums

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

 

#2 2010-10-25 16:41:40

000justin000
New Member
Registered: 2010-09-15
Posts: 12

Re: Retrieve list of albums

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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson