Hi,
The way you build OpenSocial apps is to create a Gadget XML. A Gadget
XML is a xml file in which you use html and javascript to code your
application logic. In order to use OpenSocial you will also have to
use <Require featue="opensocial-0.7"/>. I am posting links to pages
which already have some sample gadget snippets.

http://code.google.com/apis/opensocial/docs/0.7/devguide.html

Please let me know it you need any thing further on this.

One such code snippet can also be found below


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

 <![CDATA[

 <script type="text/javascript">

 /**
  * Request for friend information.
  */
  function getData() {
    var req = opensocial.newDataRequest();
 
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
'viewer');
 
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.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.
  *
  * @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;
  };

  gadgets.util.registerOnLoadHandler(getData);

  </script>
  <div id="message"> </div>
  ]]>
  </Content>
</Module>

Thanks,
Rohit

On May 26, 2:53 am, chakri <[EMAIL PROTECTED]> wrote:
> On May 24, 6:03 pm, "Rajiv Renganathan" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I think its a good practice to google yahoo or live before posting such
> > questions especially when one is requesting for guide in anything other than
> > rocket science! :)
>
> > Nevertheless, here is the 
> > "guide"http://code.google.com/apis/opensocial/docs/0.7/devguide.html
>
> > regards,
> > Rajiv
> > rajspace.net
>
> > On Sat, May 24, 2008 at 1:43 PM, chakri <[EMAIL PROTECTED]> wrote:
>
> > > I am fresher .I am new to opensocial.I want to develop an application.
> > > can anyone please guide me to develop an application.I will be
> > > thankful if anyone can guide me.
>
> > > Thanks & regards
> > > Chakri
>
> > --
> > -------------------------------------------------------------------------------------------------
> > Stockoogle.in > Harnessing Google power for your equity analysis
> > -------------------------------------------------------------------------------------------------
>
> I have gone through the link you have given .I am confused to start my
> application.I have my script in my js script file.now how can I
> proceed further.help me out of this problem.
>
> Thanks and Regards
> Chakri..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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