[Solved] execute function right after xmlhttp.open and xmlhttp.send finished [duplicate]


You should call it like this:

 xmlhttp.onreadystatechange = function() {
     if (this.readyState == 4 && this.status == 200) {
         document.getElementById("txtHint").innerHTML = this.responseText;
         get_fb();//  THIS
      }
   };

2

solved execute function right after xmlhttp.open and xmlhttp.send finished [duplicate]