Can you post the entire gadget ? I think that you forgot to include the
opensocial feature:
Example:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="Gifts parte 0 - Iniciando">
*    <Require feature="opensocial-0.8"/>*
  </ModulePrefs>
  <Content type="html">
    <![CDATA[
    ]]>
  </Content>
</Module>

Regards,

Robson

2009/8/23 César <cesare.d...@gmail.com>

>
> Hello people,
>                   I am trying to load a list of my friends in a
> gadget that I am building.
> I got the code from
> http://code.google.com/intl/en-US/apis/orkut/articles/tutorial/tutorial.html
> for this part 'Gifts part 1 - Friends'
> and the code that I choose to prove this is the next
>
> <script src="http://opensocial-resources.googlecode.com/svn/samples/
> tutorial/tags/api-.7/gifts_1_friends.js"></script>
>      <script>
>        gadgets.util.registerOnLoadHandler(init);
>      </script>
>      <div id='main'>
>        Your friends:
>        <div id='friends'></div>
>      </div>
>
> I have been trying to use it and always return me a message from
> 'Firebug' that says 'Opensocial is not defined!', so, firebug shows me
> that the problem is in this line:
>
>  var req = opensocial.newDataRequest();\n
>
> I saw another previous posts about this problem but those didn't help
> me.
>
> Thanks a lot if somebody can tell me something to solve this problem
>
> Greetings, Cesar
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to