Hi Jean-Noël,
On Friday April 16 2010 05:04:49 Jean-Noël Rivasseau wrote:
> I'd like to be able to load my Qx app after a main web page has been
> loaded. I thought this would be simple, just add the loader script alter
> instead of initially. Turns out it isnt; on FF 3.5 the Qx app would NOT
> load.
>
> I've looked at the source and this is because (on FF < 3.6) what actually
> triggers the load of the application is "DOMContentLoaded", which is never
> fired in my case since it was already fired.
Yes, the loader does initialize the application as early as possible (in case
of FF this is the "DOMContentLoaded" event).
> On FF 3.6 there is a
>
> if (qx.$$domReady || document.readyState == "complete")
>
> code snippet that makes it work, but FF 3.5 and below does not have
> document.readyState.
The only thing you need to ensure is that the variable "qx.$$domReady" is set
to true before you load the qx sources.
--snip--
if (!window.qx)
{
window.qx = {};
window.qx["$$domReady"] = true;
// load the sources
}
--snip--
> Would it be possbile to resolve that by adding a special option to the
> generator that will always set qx.$$domReady to true?
I guess the generator is the wrong place here. For this special requirement
the best place will be the HTML file of the application.
cheers,
Alex
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel