Hit another hurdle. Would appreciate help getting over this one. I've put my test site on ape.mydomain.com (not really "mydomain.com", but I'd rather not broadcast the URLs I am using). The ape server is now running on a subdomain (with a different IP address so it can use port 80), at appServer.mydomain.com.
But now, when I load the page in a browser I get errors and/or exceptions, presumably due to same-origin issues. >From a bit of googling it seemed that I should just be able to set the 'domain' config option to the parent domain (both the website and the server run on subdomains of it), so the client config includes: APE.Config.baseUrl = 'http://ape.mydomain.com/APE_JSF'; //APE JSF APE.Config.domain = 'mydomain.com'; APE.Config.server = 'appServer.mydomain.com'; //APE server URL While the server config includes: Server { port = 80 domain = mydomain.com } This is the error I get in the browser: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://ape.mydomain.com/APE_JSF/Build/uncompressed/apeClientJS.js :: anonymous :: line 140" data: no] Line 0 Exactly what do I need to do to make this work? thanks. On Sep 30, 10:57 am, AWC <[email protected]> wrote: > OK I figured it out. I guess the demo isn't meant to work out of the > box :) > > I've set the APE server running and changed the config.js in Demos/. > Looks good so far. :) > > - Kev > > On Sep 30, 10:33 am, AWC <[email protected]> wrote: > > > > > > > > > OK, I've now realised I probably wasn't supposed to just copy the > > scripts directory from the server distribution. > > > I've now downloaded the APE_JSF separately and put it all in my web > > root. The demos _should_ work as is, without any modification, yeah? > > > When I go tohttp://mydomain.com/Demos/Chat/demo.html(infirefox 3.6) > > I get this javascript error: > > > "Illegal document.domain value* code: *1009" > > > What am I doing wrong? > > > thanks, > > > - Kev > > > On Sep 30, 10:03 am, AWC <[email protected]> wrote: > > > > Hi, > > > > I'm having trouble getting started. The guide in the wiki doesn't seem > > > to reflect the current state of the software, so I'm having to work it > > > out... > > > > I downloaded the linux binary (didn't seem to be a source package or > > > an RPM as the wiki said). > > > > I've copied scripts/ to my web root (of ape.mydomain.com). I've > > > referenced all the javascript files in my index.html, but I get an > > > error, "Ape is not defined". > > > > Where is Ape defined in the javascript (I've grepped but didn't find > > > it)? Do the javascript files need to be included in a particular > > > order? > > > > In short, how do I get an Ape object created in the client-side > > > javascript? > > > > thanks, > > > > - Kev -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
