Hi,

The solution is to launch the loading of the next script from the previous
one.

You can insert this call in each loaded script:

   loadNextOne();
By simple server side processing you can add this line at the end.

This function would be defined in the main HTML page.



Alessandro Sala wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Qooxdoo-and-XHTML-documents-tf2506117.html#a7028022
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to