Hi Chris,

I've found the reason.
On top of caching problem, I've created copy of syndicator.js which is
named syndicator_.js in /shindig/config directory.
That file seems to overwrite syndicator.js's configuration.

Sorry for bothering you.


Happy holiday!

2008/4/30 Chris Chabot <[EMAIL PROTECTED]>:
> Hey Eiji,
>
>  I think the root of the problem here is that the parsed syndicator.js
> config is cached (for performance reasons). So to make your configuration
> change take action immediately you need to do a:
>
>  # rm -rf /tmp/shindig
>
>  After that your changes should show up.
>
>  The proxy urls are also provided by shindig, in most cases the default
> config should be sufficient.
>
>  Sorry for such a short reply, it's a national holiday here called 'Queens
> day': http://en.wikipedia.org/wiki/Koninginnedag which is not something to
> be missed :) If you run into any further problems please mail me and i'll
> get back to you tomorrow
>
>         -- Chris
>
>
>
>  On Apr 30, 2008, at 12:27 PM, Eiji Kitamura wrote:
>
>
> > Hi,
> >
> >
> > I'm trying to get Shindig working on my SNS site with the latest PHP
> > version (which Chris uploaded on his site).
> > The first thing I'm trying to do is to learn how to import this
> > servlet style codes into our Rails like MVC framework.
> > Since there's no class reference or documentations, I try to read
> > source codes and understand what it's doing.
> > But how shinidig juggles configurations and classes looks really
> > complex without any class references.
> >
> >
> > - /shindig/php/config.php
> > - /config/syndicator.js
> > - /features/*
> >
> > Above is a list of files I think I should deal with.
> >
> >
> > In /shindig/php/config.php, I set
> >
> > 'web_prefix' => '/shindig'
> >
> > since I want server root to be http://localhost/shindig/gadgets.
> >
> > When I try to access
> >
> http://localhost/shindig/gadgets/files/samplecontainer/samplecontainer.html
> >
> > I see 404 error which is generated when gadget tried to retrieve
> > socialdata from http://localhost/socialdata while expected socialdata
> > url should be http://localhost/shindig/socialdata
> >
> > I found a line of code in HTML
> >
> >
> gadgets.config.init({"core.io":{"proxyUrl":"proxy?url=%url%","jsonProxyUrl":"proxy?output=js"},"opensocial-0.7":{"path":"\/socialdata","domain":"shindig","enableCaja":true,"supportedFields":{"person":["id","name","thumbnailUrl","profileUrl"],"activity":["id","title"]}},"rpc":{"parentRelayUrl":"\/gadgets\/files\/container\/rpc_relay.html","useLegacyProtocol":false}});
> >
> > which seems derived from /shindig/config/syndicator.js
> > but changing syndicator.js never seems to be reflected to the HTML code.
> >
> > Where do proxyUrl and jsonProxyUrl come from? How can I change them?
> > And what kind of configurations I should take care of when i try to
> > get shindig working?
> >
>
>

Reply via email to