On Sun, Sep 28, 2008 at 4:13 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can I read Activities in v0.8 (like in "hi5")? > > I wrote this: > > function RefreshActs() > { > var req = opensocial.newDataRequest(); > var spec = new opensocial.IdSpec(); > spec.setField(opensocial.IdSpec.Field.USER_ID, > opensocial.IdSpec.PersonId.OWNER); > req.add(req.newFetchActivitiesRequest(spec), 'viewer_activities'); > req.send(onLoadActivities); > } > > function onLoadActivities(data) > { > alert(activities==null); // I get "false" > alert(activities['activities']==null); // I get "true" > } > > What is going on? > What does "activities" really contain?
There's a problem in your onLoadActivities() function, you foget the line to get the activities: var activities = data.get('viewer_activities').getData(); ~S --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---