about wating a few miliseconds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ricardo Garcia

    #1

    about wating a few miliseconds

    hi, in somewhere in my code, i try to load an xml file, the problems is that
    the sentence xmlDoc.load('fi le.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


  • VK

    #2
    Re: about wating a few miliseconds

    Try this:

    xmlDoc.async = false;
    xmlDoc.load('fi le.xml')


    Comment

    Working...