Hello,
> I have used successfully this way of loading remote scripts (before I used
> to use XmlHttpRequest for AJAX purposes):
>
> function loadScript(url, id) {
> var scriptTag = document.getElementById(id);
> var head = document.getElementsByTagName('head').item(0)
> if (scriptTag) {
> head.removeChild(scriptTag);
> }
> script = document.createElement('script');
> script.src = url;
> script.type = 'text/javascript';
> script.id = id;
> head.appendChild(script)
> }
>
> Hope this helps.
thank you, but this is exactly what I am doing. The problem here is that
on application startup we have sequentially to load a lot of scripts
(one for every class) which depend one on another, so it is mandatory
that, when adding a script element, the previous one be fully loaded
and parsed.
Firefox and Opera work this way, while IE6 seems to start loading and
parsing the new script before having fully parsed the previous one: so
classes defined in the previous script are not completely created and
the new script raises errors.
Alessandro
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel