I am wondering if it is possible to initialize an application "build" version at startup by reading from, for example, a json file, that a user would configure to have parameters such as fully qualified domain name and path to webserver, etc. Somehow the qooxdoo application "build" version would read from this file and establish a base URL and webserver path which would then be stored as internal variables, most likely, in the Application class, that then could be passed as arguments to other classes during their initialization phase.
To clarify, I would like to install a qooxdoo "build" version application under some Linux specified webserver directory path, such as "/srv/www/htdocs" where this directory path can vary, depending on which specific Linux server it would be installed to (different servers could possibly have different configurations). And at the same time serve the "build" version application from a fully qualifed domain name, which can also vary. These two parameter values, and possibly others, would be defined in some kind of file, perhaps json or php, and somehow read in to initialize the application. The problem I am having is this; if I try making a call to a php file stored in some directory location relative to the build directory, then when making the call to the php file I need to already know what is the fully qualified domain name in the URL reference. e.g. qx.Class.define("xyz.Application" { ... getConfig: function () { var url = "http://[FQDN]/xyz/php/GLOBALS.php" var req = new qx.io.remote.Request(url, "GET", "text/plain"); ... req.send(); } }); But the application has already been built. So I cannot know before hand what the FQDN will be. Is there a way to make a relative reference to some resource that can be used for initialization without having to worry about FQDN or webserver paths? -- View this message in context: http://qooxdoo.678.n2.nabble.com/Initialization-of-application-build-at-startup-tp5932819p5932819.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel