Turns out I had the wrong rpc.js which is what I suspected all along.
What I ended up doing was running the sample through the Java
server (which works fine) and I copied the code from that rpc.js
and created /gadgets/js/rpc.js then pointed sample1.html back
to that file.  I'm not sure why there is a different rpc.js in /features
so maybe somebody can shed some light on that.

- Scott


On Mar 29, 2008, at 3:01 PM, Scott Aikin wrote:

I've been playing with the Shindig PHP code and did manage to get a
gadget server running with it, but I cannot get the javascript opensocial
sample containers to work with it.  I've got this directory layout:

/gadgets/src - PHP code
/gadgets/javascript
/gadgets/features
/gadgets/config

I've tried running the samples in the javascript directory, but the first
problem is that rpc.js is referenced in ../../js/ which does not exist
anywhere in the Shindig distribution.  So I tried including it from
/gadgets/features/rpc, but I'm still getting some errors when testing
the samples:

gadgets.util has no properties
[Break on this error] var params = gadgets.util.getUrlParameters();
rpc.js (line 40)

gadgets.rpc has no properties
[Break on this error] gadgets.rpc.register('resize_iframe', this.setHeight);
gadgets.js (line 182)

gadgets.container has no properties
[Break on this error] var gadget0 = gadgets.container.createGadget ({specUrl: specUrl0});
sample1.html (line 19)

Now I could be going about this completely wrong, so any nudge
in the right direction would be greatly appreciated.

Thank you!
- Scott

Reply via email to