hi.  I am trying to develop a page that I can reload the slideshow by
clicking a button.

GOAL : to be able to reload the loadSlideShow function by clicking
some button after changing the feed

PROBLEM : I am not sure how to set a function that works in a jQuery
element, $(...).click()

http://www.google.com/uds/solutions/slideshow/reference.html

gives a nice and concise way to set a slideshow.  And I would like to
change the feed and reload this function,

loadSlideShow()

The feeds may be given by the form of Array like,

var feed = new Array(17);
feed[0]  = "...";
feed[1]  = "...";
...

and I tried...
//---------------------------------------------------------------
function getPicture(num){
    function LoadSlideShow() {

        var options = {displayTime:2000, transistionTime:600,
scaleImages:true};
        var ss = new GFslideShow(feed[num], "slideShow", options);
    }
    google.load("feeds", "1");
    google.setOnLoadCallback(LoadSlideShow);
}
//----------------------------------------------------------------

hoping that "getPicture(0)" should give a slide show with the feed[0].

And I put this function in

$(...).click(function () {
             getPicture(num);
});

But it does not reload as I wish.
Could anyone help me out for setting the function to reload
"LoadSlideShow", if possible?

soichi

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to