Magna Concursos
415379 Ano: 2017
Disciplina: TI - Desenvolvimento de Sistemas
Banca: FCC
Orgão: TRT-24
Provas:

Consider the following AJAX code:

function loadReport() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    document.getElementById("data").innerHTML = this.responseText;
    }
  };
  xhttp.open("GET", "report.txt", true);
  xhttp.send();
}

The readyState property holds the status of the XMLHttpRequest. So, this.readyState == 4 means that

 

Provas

Questão presente nas seguintes provas

Técnico Judiciário - TI

60 Questões