gadgets.rpc is actually not designed for this use case; remote
applications that must communicate with an OpenSocial container should
do so via the REST API, a beta of which is going to be made available
fairly soon. I apologize for the misleading wiki article which I'll
amend shortly to discourage the use of gadgets.rpc in this context.

Until the REST API is available, the recommended (and much more
secure) approach is to fetch your HTML from your remote page using
gadgets.io.makeRequest, then output this in a 'div' element inside of
your application. This way, you can continue to build your pages in an
environment that's comfortable for you but still access the OpenSocial
API functions.

- Jason

On Sep 16, 6:38 pm, someone somewhere <[EMAIL PROTECTED]> wrote:
> I see this problem too (although only in IE 7/8).
>
> Kallol,
>
> You may want to star this issue:
>
> http://code.google.com/p/opensocial-resources/issues/detail?id=349
>
> Jason wrote:
> > Hi kallol. Can you link me to your gadget spec? I can try to reproduce
> > the issue with your application, but, doing my own quick copy and
> > paste job on this end seems to work fine. Of course, the problem may
> > also be browser-related; which version of Firefox are you using and
> > which platform are you running it under?
>
> > To answer your questions:
> > a) To be on the safe side, you should keep your messages under 2K in
> > size for older browsers using the IFPC transport.
> > b) Yes, as long as y.php is called from x.php while running in the
> > IFrame. Otherwise, you need to pass a targetId into the call method:
>
> >http://code.google.com/apis/opensocial/docs/0.7/reference/gadgets.rpc...
>
> > - Jason
>
> > On Sep 4, 5:18 am, Kallol Borah <[EMAIL PROTECTED]> wrote:
> > > Hi
> > > I just tried testing the rpc library, just did a cut and paste job
> > > with the code in the wiki.
>
> > > I got this exception in firebug
>
> > > No relay file assigned for IFPC
> > > buttonsnap_addbuttons()post.php (line 626)
> > > [Break on this error] if(!f){throw new Error("No relay file assigned
> > > for IFPC")
>
> > > What could be the problem here ?
>
> > > I also wonder if
> > > a) there is any limit on the size/length of the message sent back to
> > > the parent container ?
> > > b) it will allow any file in the application in the iframe to call
> > > back the parent ? so, if iframe's main file x.php invokes y.php which
> > > needs to call back the parent, will it be able to use the rpc.js lib
> > > to callback the parent ?
>
> > > regards
> > > kallol
--~--~---------~--~----~------------~-------~--~----~
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