6 messages in com.googlegroups.google-picasa-data-apiRe: How can I read gphoto.height elem...
FromSent OnAttachments
DOH08 Apr 2007 14:03 
DOH08 Apr 2007 14:08 
Sven09 Apr 2007 10:47 
DOH09 Apr 2007 15:36 
Sven09 Apr 2007 16:16 
DOH10 Apr 2007 11:56 
Subject:Re: How can I read gphoto.height element associated values?
From:Sven (s.@google.com)
Date:04/09/2007 10:47:34 AM
List:com.googlegroups.google-picasa-data-api

Try:

var height = item.gphoto$height.$t; var width = item.gphoto$width.$t;

On 08/04/07, DOH <phil@gmail.com> wrote:

Sorry that should also have read var height = item.gphoto$height; var width = item.gphoto$width; doesn't work either.

On Apr 8, 10:04 pm, "DOH" <phil@gmail.com> wrote:

I am using the following code snippet (simmilar to that

describedhttp://www.zmarties.com/picasa/blog/2007/02/picasa-web-albums-feeds-i...),

but using the api feed rather than base feed to access information about pictures in an album at picasaweb.

<script language="JavaScript"> function output(data) { //for (var i = 0; i < data.feed.entry.length; i++) for (var i = 0; i <24; i++) { var item = data.feed.entry[i]; var src = item.content.src;//useful for downloading full image var title = item.title.$t;

var height = item.gphoto.height; var width = item.gphoto.width;

var filename = item.media$group.media$title.$t;//filename of image var imageurl0 = item.media$group.media$thumbnail [0].url;//small thumbnail }}

</script>

<script src="http://picasaweb.google.com/data/feed/api/user/my username/album/my albumname?kind=photo&amp;alt=json-in- script&amp;callback=output&amp;access=public"></script>

However var height = item.gphoto.height; var width = item.gphoto.width; do not return any values as expected. Everything else works fine, just can's access gphoto data and exif data.

Can anyone help and also perhaps explain the significance of the $ in the javascript code? I am using the code without fully understanding it!

Many thanks in anticipation.