Hi Chris, > I'm not the expert for the boot loader from qooxdoo, but I will try my > best ;-) > > I think, I have found the reason why the application is not loaded > with Firefox. The qooxdoo script loader sets a DOM ready flag for FF, > which isn't set when the application is loaded like you do. > > You can add this workaround to your source code to run it with your > build application on script load: > <code> > // ... > <script type="text/javascript"> > if (!window.qx) window.qx = {}; > var fireContentLoadedEvent = function() { > qx.$$domReady = true; > document.removeEventListener('DOMContentLoaded', > fireContentLoadedEvent, false); > }; > if (document.addEventListener) { > document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, > false); > } > > //<![CDATA[ > window.onload = > // ... > </code> > > This code is a copy from qooxdoo script loader and sets the DOM ready > flag for Firefox. > > I haven't tested it, but I think now it works with all Browsers. Thanks, it worked fine. I tested on FF 3.5.6, opera 10, chrome 4 and it worked great on all these.
Thanks to Sebastien too. His snippet with just 2 lines worked right too. And as he said, it'd be great if qooxdoo itself came with this feature. That way, any future boot loader changes won't affect us too :) cheers, skar. -- -- The life so short, the craft so long to learn. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel