I modified that code to use the error check and it returns an error
condition:

function RefreshActs() {
  var req = opensocial.newDataRequest();
  req.add(req.newFetchActivitiesRequest("VIEWER"), "activities");
  req.send(onLoadActivities);
};

function onLoadActivities(data) {
  if (data.hadError()) {
    alert("Error: " + data.get("activities").getErrorMessage());
    return;
  }
  var activities = data.get('activities').getData();
  var html = "<ul>";
  activities.each(function(activity) {
    html+="<li>"+ activity.getField('title')+"</li><br>"
  });
  html += "<ul>";
  document.getElementById('dom_handle').innerHTML = "The activities: <br>";
  document.getElementById('dom_handle').innerHTML += html;
};

function CreatAct() {
  var params = {};
  params[opensocial.Activity.Field.TITLE] = document.act.TX.value;
  var activity = opensocial.newActivity(params);
  opensocial.requestCreateActivity(activity,
      opensocial.CreateActivityPriority.HIGH, function(){});
};

RefreshActs();


Alerts "Error: notImplemented: Not Supported" on orkut.

~Arne



On Thu, Sep 25, 2008 at 1:41 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:

>
> http://d.1asphost.com/tal2006/ex1111.xml
>
> On 25 ספטמבר, 23:31, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
> wrote:
> > On Thu, Sep 25, 2008 at 10:32 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> > > I've added your "hadError" IF, but it goes to the ELSE. That is to
> > > say, no errors apear.
> > > Can someone confirm what -Robson Dantas- says?
> >
> > No, fetching activities is still part of the spec.  On orkut, it appears
> not
> > to be implemented if you require feature opensocial-0.7.  I'm not sure
> why
> > you don't get the error message - can you link me to a sample gadget?
> >
> > ~Arne
> >
>


-- 
OpenSocial IRC - irc://irc.freenode.net/opensocial

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to