Hi Petr,

On Monday 09 March 2009 Petr Kobalíček wrote:
> is there any way to invoke application initialization manually ?
>
> I mean to completely skip qxsettings["qx.application"] and call
> something like qx.core.Init.init().
>
> Is this possible ?
It is possible, but you need to know what you're doing. 
If you're using the a build version and all your scripts are loaded you can 
call

--snip--
qx.event.handler.Application.onScriptLoaded();
--snip--

to invoke a qooxdoo application. This method is also called by the qooxdoo 
boot loader script.

> I need this for qxbuild. It works fine for all browsers except IE.
> Qxbuild loads all scripts by adding script into document head, but IE
> calls domready event too early (after first script is loaded). So I
> need to workaround this issue by calling qooxdoo initialization when
> I'm sure that all scripts were loaded.
For this case the "qx.event.handlerApplication" also listens to the "load" 
event as fallback if the "domReady" is fired too early. Take a close look at 
the "qx.event.handler.Application" class especially at the boolean variables 
like "__domReady" and "__scriptLoaded" to ensure these variables are set right 
to boot up the qooxdoo application.

cheers,
  Alex

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to