From: Leendert B. <lee...@un...> - 2004-07-09 13:21:48
|
I'm currently experimenting with setting up WebGUI to run on two different http servers. I use an Apache/mod_perl server for the dynamic content (generating the pages), and thttpd (a forth-generation Non-blocking I/O server) for serving all static content (uploads and extras). I was very pleased with the way WebGUI supports the configuration of the extras and uploads URL, this makes setting up a config like mine quite easy. I encountered a problem though with some of the javascript that is in the extras directory and is used in functionality such as the HTML editors. The extras-url must be different from the site-url because it is served by a different http-server. It's also possible to use the same url, but on a different port. This results in the HTML-editor javascript to be served from a different domain than the website in which the edit form is present. This causes a javascript security exception, so the editor will NOT work. To conclude: as long as the default javascripts that come with WebGUI are approached from the extrasURL that is configured in the config-file, you can't serve the extras folder from another server. Solution: seperate the javascript that comes with WebGUI and put them in a javascript folder that can be configured seperately from the extras-folder and -url. It won't be a bad idea at all to join all javascript into one folder, aside from the reasons mentioned before. JT, what do you say about this? -leendert |