The error is exactly what you see, there are a number of javascript RPC calls a gadget can do (requests like 'set_title', 'resize_iframe', etc) which have to be bridged to the container.
Since you're calling the gadget renderer directly, there's no container to talk too and no RPC end points defined, so .. the gadget -> container RPC requests error out. You can find a practical example of what such a container rpc implementation looks like, see: http://code.google.com/p/partuza/source/browse/trunk/html/js/container.js(and you need to put <script type="text/javascript" src=" http://your.shindig.loc/gadgets/js/rpc.js?c=1"></script> in the container head too for it to work). On http://www.partuza.nl you can see this all in action, and http://code.google.com/p/partuza has the source code behind it -- Chris On Thu, Jul 9, 2009 at 5:38 PM, rbruhn <[email protected]> wrote: > > Just an update on what I did in case others are looking for answers, > and a quick question about a javascript error. > > After installing and getting things to work, I receive javascript > errors in FireFox. I even receive these when looking at the shindig > example page: > > http://modules.partuza.nl/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml > > The error is: No relay set, cannot send cross-domain messages > > Any idea why this is happening? > > ====== Here is what I did to install Shindig (CentOS 4.7) ====== > > 1) Created subdomain modules.myhosting.com on my hosting site. > > 2) Created module_wildcard.conf include file for new subdomain. > Configuration of module_wildcard.conf: > ServerAlias *.modules.myhosting.com > DocumentRoot /usr/local/apache/htdocs/shindig/php > <Directory /usr/local/apache/htdocs/shindig/php> > Options FollowSymLinks > AllowOverride FileInfo > Order Allow,Deny > Allow from all > </Directory> > > 3) Checked out shindig trunk to apache/htdocs/shindig > > 4) Chown shindig directory recursively for my hosting user/group > permission. > > 4) Since my server runs PHPSuExec, I removed > "always_populate_raw_post_data On" from the .htaccess and placed it in > a php.ini file located in /shindig/php > > 5) Restarted Apache and went to > > http://modules.myhosting.com/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml > and everything worked. > > Thanks for pointing me in the right direction :-) > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Implementing OpenSocial Containers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/opensocial-container?hl=en -~----------~----~----~----~------~----~------~--~---
