*Hai Ahmad *
**
*you just put 0.5 version only and run in Mozilla Firefox only then u get
result *
**
*i faceed same problem *
*bye Raju
*
On Jan 17, 2008 2:56 AM, ahmed <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> i am new to OpenSocial and was try the exmple from below link.
>
> http://code.google.com/apis/opensocial/articles/firstgadget/firstgadget-0.6.html
>
> i keep on getting javascript error:  'opensocial' is undefined.
>
>
> below is the code that i am using.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>  <ModulePrefs title="My Test App">
>    <Require feature="*opensocial-0.6*" />
>  </ModulePrefs>
>  <Content type="html">
>    <![CDATA[
>    <script type="text/javascript">
>      _IG_RegisterOnloadHandler(request);
>
>      function request() {
>        var req = opensocial.newDataRequest();
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.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 html = '<img src="' + thumb + '"/>' + name;
>        document.getElementById('main').innerHTML = html;
>      }
>      </script>
>
>      Hello, world!<br><br>
>      <div id="main"></div>
>  ]]>
>  </Content>
> </Module>
>
>
> thanks,
> ahmed
> >
>


-- 
RajaSekhar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Discussion" group.
To post to this group, send email to opensocial-orkut@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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to