I also get this javscript error. Open social not defined.

Has this been fixed yet?

On Nov 6, 12:30 am, nokacer <[EMAIL PROTECTED]> wrote:
> Im trying to do this the simplest of the applications, however, when i
> run the app in orkut, it print the text "Hello, World!" but nothing
> about the profile, in firebug i get the error "opensocial is not
> defined", what is happening here?
>
> this is the code:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>   <ModulePrefs title="People API Howto - listing name">
>           <Require feature="opensocial-0.5" />
>   </ModulePrefs>
>   <Content type="html">
>   <![CDATA[
>     Hello, world!
>     <div id='main'></div>
>     <script type="text/javascript">
>             _IG_RegisterOnloadHandler(request);
>
>             function request() {
>             var req = opensocial.newDataRequest();
>             req.add(req.newFetchPersonRequest("VIEWER"), "viewer");
>             req.send(response);
>             }
>
>             function response(data) {
>             var viewer = data.get("viewer").getData();
>             var name = viewer.getDisplayName();
>             var thumb =
> viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
>             var profile =
> viewer.getField(opensocial.Person.Field.PROFILE_URL);
>             profile = 'http://sandbox.orkut.com'+ profile;
>             var html = '<img src="' + thumb + '"/>';
>             html+='<a href="' + profile + '" target="_top">' + name + '</
> a>';
>             document.getElementById('main').innerHTML = html;
>             }
>         </script>
>
>   ]]>
>
>   </Content>
> </Module>


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

Reply via email to