The basic HTML file
The initial file for a qooxdoo application is rather simple. It has a valid HTML structure, includes the individual qooxdoo application file (here script/custom.js), and a single line of JavaScript which initializes the user-defined application class.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Custom Application</title> <script type="text/javascript" src="script/custom.js"></script> </head> <body> <script type="text/javascript"> qx.core.Init.getInstance().setApplication(custom.Application); </script> </body> </html>
script/custom.js is a JavaScript file that contains both the qooxdoo library classes as well as the custom application code. This combined code file is usually created by the qooxdoo build process.
Of course, the custom application class can be of arbitrary name. In this example its full-qualified name is custom.Application corresponding to a JavaScript file custom/Application.js in the directory source/class. The qooxdoo build process sets up appropriate search paths to look for source files, and creates corresponding name spaces in the resulting JavaScript file.
