Thank you Rohit! I was able to make it work within Sandbox. I think Sandbox was having some hiccups that time.
- A On May 26, 12:47 pm, "Rohit Ghatol" <[EMAIL PROTECTED]> wrote: > Hi Ashish, > I have a code snippet for you, which would work in the sandbox also. > Please give this one a try and don't hesitate to get back to me if you > need any help. > > <?xml version="1.0" encoding="UTF-8"?> > <Module> > <ModulePrefs title="Request Send Message" > > <Require feature="opensocial-0.7"/> > </ModulePrefs> > <Content type="html"><![CDATA[ > <script> > function init(){ > try{ > var recipients = opensocial.DataRequest.Group.OWNER_FRIENDS; > opensocial.requestSendMessage(recipients,opensocial.newMessage("Hello"));} > > catch(err){ > alert(err); > > } > } > > gadgets.util.registerOnLoadHandler(init); > </script> > <h1>RequestSendMessage Example</h1> > ]]></Content> > </Module> > > Thanks, > Rohit > Google Developer Programs > > Join us at Google's biggest developer event of the year > May 28-29, San Franciscohttp://code.google.com/events/io > > On Sat, May 24, 2008 at 4:45 AM, yoyoga <[EMAIL PROTECTED]> wrote: > > > Ok, works within CodeRunner. Not in Sandbox seperately. Strange! > > > On May 24, 6:39 am, yoyoga <[EMAIL PROTECTED]> wrote: > > > I have tried: > > > > var recipient = opensocial.DataRequest.Group.OWNER_FRIENDS; > > > opensocial.requestSendMessage(recipients, message); > > > > and > > > > var recipient = opensocial.DataRequest.PersonId.OWNER_FRIENDS; > > > opensocial.requestSendMessage(recipients, message); > > > > None of them works. Only OWNER and VIEWER are working. Is it a bug? > > > > Thanks. > > > Ashish --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---