Kevin, Thanks for the reply. :) On Wed, Jun 4, 2008 at 9:55 PM, Kevin Brown <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 5:06 AM, Bipin Upadhyay <[EMAIL PROTECTED]> > wrote: > >> Hi, >> >> I am required to run a general PHP app on one server, and the Shindig >> app on another. For now, I am running Shindig on port 80, and a simple >> html file which has a simple, but configurable, \"Hello World\" gadget >> embedded. >> The exact scenario: >> 1. Shindig App is on port 80, and working fine. >> 2. The HTML file is on port 8080 >> 3. The javascript files, like gadgets.js, util.js, etc, are on 80 and >> have been linked using the complete URL. (Note: They are all linked >> properly. firebug gives no error about these files). >> 4. The Gadget XML is also on 8080. >> >> >> When I try to render the page on 8080, I get the following error: >> __Not Found >> >> The requested URL /ifr was not found on this server.__ >> >> Pretty clearly, it\'s try to contact something like >> __localhost:8080/ifr?....__ instead of ___localhost/gadgets/ifr?...__ >> Now my queries are: >> 1. Is this even possible? I mean, to keep the general app and Shindig >> on separate servers. > > > Not just possible, but essential. You should never run a gadget renderer on > the same port (really, you shouldn't even use the same domain) in a > production scenerio. We run everything on the same host / port by default > because it makes development easier. >
Awezome! > >> 2. Would gadget.setServerBase() be of any use here? When I try to add >> it, Firebug throws error that *gadget is not defined*. > > > Are you talking about the sample container and examples? If so, yes -- you > need to modify the server base. I wouldn't recommend using this code on a > real site though. > Nopes! I am talking about a different helloworld code where we can change the background color. Currently, we are preparing just a demo, hence using 'same system, separate ports'. Now back to the questions, how exactly the do we specify the Gadget Server's url to the custom app? Why isn't the _gadget_ of _gadget.setServerBase()_ being identified correctly? Can _gadget.setServerBase()_ take a full-fledged url, or just relative path? [SNIPPED] -- Bipin Upadhyay. I'd love to change the world, but they won't gimme the source code. http://projectbee.org/

