about wating a few miliseconds

R

Ricardo Garcia

hi, in somewhere in my code, i try to load an xml file, the problems is that
the sentence xmlDoc.load('file.xml') takes some time in finish, but
mozilla continues interpretating the code, so uses xmlDoc when it is not
loaded.

Is there any way of waiting some time (like Thread.sleep or Thread.wait
in Java)???

If i could i would wish not to use setTimeout()


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top