Questão 1325364

Língua Inglesa · 2017

Questão

ID 1325364

Disciplina: Língua Inglesa

Assunto: Inglês para Tecnologia da Informação | English For Information Technology

Ano: 2017 Banca: FCC - Fundação Carlos Chagas Órgão: Tribunal Regional do Trabalho da 24ª Região


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

Alternativas da questão 1325364
Pular para o conteúdo principal