xmlHttp.onreadystatechange = function()

in content/javascripts/phonebook.js [75:90]


      xmlHttp.onreadystatechange = function(state) {
         if (xmlHttp.readyState == 4) {
            if (cb) {
               if (xmlHttp.status == 200) {
                  elapsed = Date.now() - start
                  cb(JSON.parse(xmlHttp.responseText));
                  // must be done after as cb creates the hash
                  info[desc]['elapsed'] = elapsed
               } else {
                  cb({});
                  alert("Error: '" + xmlHttp.statusText + "' while loading " + URL)
               }
            }
            getAsyncJSONArray(urls, finalCallback);
         }
      }