My first social gadget!

hello, and created a social gadget opensocial very basic, only showing you the friends you have, but on trying to prove in demozzz.com nothing comes out, it's just as if it were executed ....

This is the code:

<?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">

/**
* Request for friend information when the page loads.
*/
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>
Here is the file:

http://sites.google.com/site/19154000a/gad.xml

could someone explain what happens?

Quote · 30 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.