Hi Christiaan I'm fairly sure it's gadget.setServerBase(). We are building the iframe snippet on the server - using the metadata call to get e.g. the title - so the actual path to the Shindig server is something we configure ourselves. Have you seen Partuza? http://code.google.com/p/partuza/ . He does it this way. Justin
> Date: Wed, 11 Aug 2010 14:07:39 +0200 > Subject: Cross domain call to metadata > From: [email protected] > To: [email protected] > > Hi, > > I'm trying to set up a new container. > I used the samplecontainer as a base except my container is running on a > different port from Shindig: > Java Shindig is running on localhost:8080 > My site is running on localhost:8090 > > localhost:8090/index.html has 2 script imports: > <script type="text/javascript" src=" > http://localhost:8080/gadgets/js/shindig-container:rpc.js?c=1&debug=1&nocache=1 > "></script> > <script type="text/javascript" src="js/coincontainer.js"></script> > > coincontainer.js works a lot like samplecontainer.js except this fails: > sendRequestToServer("/gadgets/metadata", "POST", > gadgets.json.stringify(request), opt_callback, true); > because that call gets made to 8090 instead of 8080 so it results in a 404. > > How can I make the cross domain call to 8080? > Is there something I can configure in Shindig so it can use JSONP or > something like that? > Or should I do the call to metadata on the serverside already and then put > the results in my page? > Would shindig.container.setParentUrl('http://localhost:8090/'); do anything > that could be related? > Or gadget.setServerBase()? > > /Christiaan
