Hi Petr,
thanks for your response. In the meantime I fixed the IE problem by myself.
The ScriptLoader can't cope with IE for two reasons:
1. The onload-event doesn't work for script tags in IE. So the progress bar
doesn't show any progress and the application doesn't start. That means
"loading process stucks".
2. IE doesn't guarantee the loading order. So it can happen, that
application files are loaded and parsed before the qx-build.js file. In that
case several execution errors occur.
I replaced the ScriptLoader by my own implementation using the loading
sequence from the original qooxdoo build result:
ScriptLoaderNew =
{
init: function(scripts)
{
ScriptLoaderNew.loadScriptList(scripts, function(){
// Opera needs this extra time to parse the scripts
window.setTimeout(function(){
if (window.qx && qx.event && qx.event.handler &&
qx.event.handler.Application) {
qx.event.handler.Application.onScriptLoaded();
}
}, 0);
});
},
loadScriptList: function(list, callback) {
if (list.length == 0) {
callback();
return;
}
ScriptLoaderNew.loadScript(list.shift(), function() {
ScriptLoaderNew.loadScriptList(list, callback);
});
},
loadScript: function(uri, callback) {
var elem = document.createElement("script");
elem.charset = "utf-8";
elem.src = uri;
elem.onreadystatechange = elem.onload = function()
{
if (!this.readyState || this.readyState == "loaded" || this.readyState
== "complete")
{
elem.onreadystatechange = elem.onload = null;
callback();
}
};
var head = document.getElementsByTagName("head")[0];
head.appendChild(elem);
}
};
The files are loaded one by one (which is a little bit slower) and detecting
successful loading for IE is done by the onreadystateevent.
There is no progress bar yet, but adding the progress bar should be easy.
The solution works for FF and IE.
So that's my workflow now:
- compiling qx-build.js with qx-build
- manually removing the qooxdoo application start at the end of qx-build.js
(qx.event.handler.Application.onScriptLoaded();)
- loading and calling ScriptLoaderNew in the HTML file:
qxscripts =
[
// Qooxdoo
"./script/qx-build.js",
// Add here your scripts to load
"./trac/theme/Appearance.js",
"./trac/Application.js",
...
];
ScriptLoaderNew.init(qxscripts);
Petr Kobalíček wrote:
>
>
> And last thing,
> you had problem with qx.bom.Vml ? I think I reported this issue
> half year ago!:(
>
>
The issue is still open.
Cheers,
Tim
--
View this message in context:
http://www.nabble.com/qxbuild-for-0.8.2-ready-tp22386562p25378289.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel