If you use proxied content, you can´t use opensocial API like that. Just remember that server will post you all information required on your gadget. Example:
<Content href="http://www.example.com" authz="signed" sign_viewer="true"> <os:PeopleRequest key="viewer_friends" userId="@viewer" groupId="@friends" count="2"/> <os:ViewerRequest key="viewer" /> </Content> See an example here: http://wiki.opensocial.org/index.php?title=Remote_Data_Requests <http://wiki.opensocial.org/index.php?title=Remote_Data_Requests>Regards, Robson Dantas 2010/3/26 Mahesh Prasad <mahesh.pra...@gmail.com> > Perfect! Thanks for your help! This is what I was looking for. I tried > it with sending owner data info...and my web app received the data. > > I got another question. > > If I send some JavaScript code that uses OpenSocial JS API as part of > my response stream will it get executed on client side in the > container. For ex: > > Hello World > <script> > var req = opensocial.newDataRequest(); > req.add(req.newFetchPersonRequest("OWNER"), 'owner'); > req.send(onLoadOwnerInfo); > </script> > > I tried doing something like this...but was getting "opensocial object > undefined" error. Have you tried anything like this? Is it even > possible? > > Thanks > > Mahesh > > On Mar 10, 1:37 pm, Robson Dantas <biu.dan...@gmail.com> wrote: > > Hello Mahesh. > > > > I think using proxied content will fit on what you´re looking for. Take a > > look here: > http://wiki.opensocial.org/index.php?title=Social_Application_Tutoria... > > > > Let me know if it helps you. > > > > Robson Dantas > > > > 2010/3/10 Mahesh Prasad <mahesh.pra...@gmail.com> > > > > > > > > > All open social samples show apps as being wholly HTML and JavaScript > > > based which make service calls to external app servers to pull app > > > data. > > > > > Can we build the whole app ui on the server side using higher level > > > languages like C# or Java and use only OS JS Api to pass owner/viewer/ > > > friend info to the sever? > > > > > If any one has done this can you please share it in this forum. My > > > attempts have been un successful. > > > > > Thanks > > > mahesh > > > > > -- > > > 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-...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com> > <opensocial-api%2bunsubscr...@go oglegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/opensocial-api?hl=en. > > -- > 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-...@googlegroups.com. > To unsubscribe from this group, send email to > opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-api?hl=en. > > -- 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-...@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.