[orkut-developer] Re: I am not able retrieve content from this field opensocial.Person.Field.ADDRESSES

2008-07-01 Thread Jason
Hi Peter. Yoichiro is absolutely right -- I just wrote a quick sample and this worked for me: var viewer = data.get('viewer_profile').getData(); var addresses = viewer.getField(opensocial.Person.Field.ADDRESSES); for (var i=0; iaddresses.length; i++) {

[orkut-developer] Re: I am not able retrieve content from this field opensocial.Person.Field.ADDRESSES

2008-06-30 Thread yoichiro
Hi Peter, On Jun 30, 1:55 pm, Peter [EMAIL PROTECTED] wrote: var address = viewer.getField(opensocial.Person.Field.ADDRESSES); var country = address.getField(opensocial.Address.Field.COUNTRY); output(country) You might be receiving two or more result as ArrayAddress because the Person

[orkut-developer] Re: I am not able retrieve content from this field opensocial.Person.Field.ADDRESSES

2008-06-29 Thread Peter
Hi Jason, Thanks for the reply, I tried to do that way. But still getting error: This is my code function response(data) { var viewer = data.get(viewer_profile).getData(); var aboutme = viewer.getField(opensocial.Person.Field.ABOUT_ME); output(aboutme); var address =

[orkut-developer] Re: I am not able retrieve content from this field opensocial.Person.Field.ADDRESSES

2008-06-27 Thread Jason
Hi Peter. viewer.getField(opensocial.Person.Field.ADDRESSES) should return an opensocial.Address object. So in order to fetch the user's country, you should be able to use: ... var address = viewer.getField(opensocial.Person.Field.ADDRESSES); var country =