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.


> 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.


>
> I\'d really appreciate a quick reply.
> Also, apologies for not doing the homework properly. I don\'t
> generally do that, but have a deadline to meet.
>
>
>
> -- Bipin Upadhyay
> I\'d love to change the world,
> but they won\'t gimme the source code.
> http://projectbee.org/
>

Reply via email to