Document Information

Last modified:
2011/02/22 12:31 (external edit)

This is documentation for qooxdoo 0.7.x only. You might be interested in consulting the latest docs.

Application Startup

Some details about the initialization of a qooxdoo application.

Loading phase

  1. Load HTML
  2. Load the JavaScript files

Before the load event is triggered

  1. Merge user settings from previously defined qx.Settings.
  2. Load qooxdoo core (OO, Array, String, validation, Object, …)
  3. Load Logging module
  4. Instantiate qx.Init
    1. attach event handler to onload, onbeforeunload and ununload
The main application must be set before the load event occurs. This is normally done in a script tag inside the main HTML file:
    qx.core.Init.getInstance().setApplication(new my.namespace.Application);

Inside the onload event handler

qx.Init._onload:

  1. looks up the default application from the settings.
  2. delegates initialization of the framework to the application.

Initialization phase

  1. Instantiate qx.ui.core.ClientDocument. ClientDocument is the basic widget of all qooxdoo applications. It is the parent of all children inside your application. It also handles their resizing and focus navigation.
  2. Instantiate qx.event.handler.EventHandler. The event handler themselves get not yet attached.

Main Phase

  1. Call main of the user defined applications class.
  2. Start preloading of images

Finalization Phase

This phase is started after the image preloader system has finished loading.

  1. Flush global queues. This creates the DOM nodes of the widgets and applies styling.
  2. Global event handler for mouse, key and focus events are registered.

Information

Last modified:
2011/02/22 12:31 (external edit)

Account

 
 
A book on qooxdoo RIAs, authored  by community members
JS Tutorial, JavaScript Tutorial, JavaScript Guide, Learn JavaScript JS, How To Learn JS, Learning JavaScript
 

Bad Behavior has blocked 0 potential spam attempts in the last 7 days.