Thanks Chris

I have already tried that 
gadgets.rpc.register('requestShareApp', this.requestShareApp);

But When you told about jsonrpc, then I saw that rpc call is 
shindig.requestShareApp instead of  requestShareApp .

So I add  gadgets.rpc.register('shindig.requestSendMessage', 
this.requestSendMessage); in my container javascript. It is working now.

One more question
 requestSendMessage is also RPC style? How can I implement this,

Regards
Ajay

--- On Tue, 4/7/09, Chris Chabot <[email protected]> wrote:

From: Chris Chabot <[email protected]>
Subject: Re: Problem in implementing requestShareApp
To: [email protected]
Date: Tuesday, April 7, 2009, 3:23 PM

Hey Ajay,

requestShareApp is what we would call 'container mediated', that means that
the requestShareApp call triggers (via rpc) the container to take care of
the details. The reason for that is that you don't want apps to be able to
spam without any user intervention and consent, plus a container is likely
to want to put some UI arround it to do things like selecting people to
share it with, maybe the possibility to add a custom message, etc.

While I haven't had any experience implementing it (& no partuza doesn't
support it yet), I presume it's as simple as doing a (in the containers
javascript):
gadgets.rpc.register('requestShareApp', this.requestShareApp);

Looking at
(shindig/features/src/main/javascript/features/opensocial-jsonrpc/)
jsonrpccontainer.js it looks like the params the requestShareApp rpc
function gets parsed are:
        null,
        callbackId,
        recipientIds,
        body

Hope that helps & good luck!

   -- Chris

On Tue, Apr 7, 2009 at 8:22 AM, ajay singh
<[email protected]>wrote:

> Hi All
>
> How can I implement requestShareApp, in my container. when I tried it says
> -Unknown RPC service: shindig.requestShareApp
> Has Partuza implemented it.
>
> Can any one help me please.
>
> Thanks
>  Ajay
>
>

Reply via email to