8 messages in com.googlegroups.google-mashup-editorRe: Picasaweb buttons? next picture, ...
FromSent OnAttachments
Grégory01 Nov 2007 23:43 
Jason02 Nov 2007 11:08 
Grégory05 Nov 2007 12:39 
Grégory05 Nov 2007 12:43 
Grégory05 Nov 2007 12:43 
Jason05 Nov 2007 16:09 
Grégory07 Nov 2007 05:05 
Jason07 Nov 2007 09:34 
Subject:Re: Picasaweb buttons? next picture, previous picture, play
From:Grégory (gfro@gmail.com)
Date:11/07/2007 05:05:05 AM
List:com.googlegroups.google-mashup-editor

Great!

Thanks for your help, you can check out what I've done here http://navigation-album-photo.googlemashups.com/

You'll find this button (previous and next - "précédente" and "suivante" in French) by clicking on an album first (left hand list) and then on a picture.

Cheers!

On 6 nov, 10:09, Jason <gmej@google.com> wrote:

Hi Greg. You'll have to tailor my example code above in order to recreate the transparent, disappearing overlays that appear on the Picasa Web Albums front-end since GME does not include advanced slideshow controls "out-of-the-box."

Secondly, although GME's JavaScript API does not provide a method to return the index of the selected entry, you can write your own function to do this by iterating through every entry in a list, comparing each with the selected entry. Alternatively, you could follow my "single-item pager" example and manage the selected index yourself:

http://demo-singleitempager.googlemashups.com/demopage.html

- Jason

On Nov 5, 12:43 pm, Grégory <gfro@gmail.com> wrote:

Just another question,

Is there any method to know which item has been selected in a list (photo n° 1, 2, 3 .. i) and set the selected item in the list to photo n° i+1 or i-1 ?

Thanks

On 3 nov, 04:09, Jason <gmej@google.com> wrote:

Hi Greg. No, I'm afraid the slideshow buttons on the Picasa Web Albums interface are not available in GME, but you can use the gm:pager control or the getPage() and setPage() JavaScript API functions to pull off something similar.

<gm:page title="My App" authenticate="false">

<gm:list data="http://picasaweb.google.com/data/feed/base/user/ levikcom/albumid/5083728396306002961?kind=photo&alt=atom&hl=en_US" pagesize="1" template="myTemplate"/>

<gm:template id="myTemplate"> <table> <tr repeat="true"> <td> <gm:image ref="media:group/media:thumbnail[@width='288']/ @url"/> <gm:image ref="media:group/media:thumbnail[@height='288']/ @url"/> </td> </tr> <tfoot> <tr> <td align="center"><gm:pager compact="true"></td> </tr> </tfoot> </table> </gm:template>

</gm:page>

- Jason

On Nov 1, 11:44 pm, Grégory <gfro@gmail.com> wrote:

Hi all,

I guess the "play" button is a javascript which is select the next picture after sometime. I was just wondering if the buttons used in picasaweb to go from one picture to the next or previous one are available in google mashup and can easily be used?

Thanks