Why not:
Do While xmlDoc.ReadyState != 4
'Do nothing
loop
Tim
: I have several XML databases that need to be loaded.
: I use the following code to do this:
:
:
: var xmlDoc = new ActiveXObject("microsoft.xmldom");
: xmlDoc.load("GebruikersDatabase.xml");
: alert('UserDatabase is being loaded...');
:
: if(xmlDoc.readyState != 4) {
: alert('UserDatabse could not be loaded.');
: return;
: }
:
:
: if I use this code it works alright, but it is very irritating that the alertbox appeares every time the database is being loaded. When I remove the first alertbox it still works on my own PC but when I upload the files to the Internet it doesn't work anymore.
:
: First I thought there wasn't enought time for the database to be loaded, so I replaced the first alertbox with:
:
: for(x=0;x<100000;x++){
: }
:
: but this didn't work either. Until now I still only have the alertbox as alternative.
:
: Does anyone now how I could do this simple thing without this stupid anoying alertbox...???
:
: please help me if you can because I'm going mad...
:
: (I've also placed this thread in the XML messagelist but noone seems to read those threads... so I hope you guys/girls can help me out...)
:
:
:
:

: -mac-
: mailto:programmersheaven@mac-doggie.nl
: the Netherlands...
:
: