So we're already seeing wrappers being made for OpenSocial to handle
the different implementations on Orkut, Hi5 and Ning? Wasn't that
Google's job?

And whose wrapper is going to be consistently updated and tested?
Chris Chabot has gotten some press with his, but Jevgenijs Sallinens
is extending it already. In 6 months, we'll probably have 3 more to
choose from.

I'm tired of this meta-meta-meta crap. Can't Google just cross all the
T's and save us all this added complexity?

Chris

PS: This simple example works for me on Ning, but not Orkut or
iGoogle:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
 <ModulePrefs title="List Friends Example">
   <Require feature="opensocial-0.5"/>
 </ModulePrefs>
 <Content type="html">

 <![CDATA[

 <script type="text/javascript">

  function getData() {
    document.getElementById('message').innerHTML = 'Requesting
friends...';
    var req = opensocial.newDataRequest();
    req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
    req.add(req.newFetchPeopleRequest ('VIEWER_FRIENDS'),
'viewerFriends');
    req.send(onLoadFriends);
  };

 /**
  * Parses the response to the friend information request and
generates
  * html to list the friends along with their display name and
picture.
  *
  * @param {Object} dataResponse Friend information that was
requested.
  */

  function onLoadFriends(dataResponse) {
    var viewer = dataResponse.get('viewer').getData();
    var html = 'Friends of ' + viewer.getDisplayName();
    html += ':<br><ul>';
    var viewerFriends = dataResponse.get('viewerFriends').getData();
    viewerFriends.each(function(person) {
      html += '<li>' + person.getDisplayName() + '</li>';
    });
    html += '</ul>';
    document.getElementById('message').innerHTML = html;
  };


  _IG_RegisterOnloadHandler(getData);

  </script>


  <div id="message"> </div>


  ]]>
  </Content>
</Module>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" 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