But there is some strange bug in the script and I can't seem to find out what the problem is.
ListHandle = GetXMLHttpObject();
ListHandle.onreadystatechange = ListStatechange;
ListHandle.open("GET", List[Position], true);
On the last line of this piece of code *sometimes* this error will occur:
"Illegal procedure call or argument"
I haven't got a clue on why this happens.
Some additional information:
- The script will load up to 200 files this way (loop with a timeout); with a pause of 0,5 seconds between requests.
- The page will be displayed for quite a long time and the loading of the files may be repeated after some time. (so it could be a problem of some sort of timeout).