Hello,
when I made an XHR and I want to show the responseBody, I get "undefined". What is the problem?
Here is my code
thanx for helpCode:client.open("POST", url, false); client.onreadystatechange = function() { switch(client.readyState){ case 4: if(client.status == 200){ alert(client.responseBody); document.getElementById('test').innerHTML = client.responseBody; } break; } } client.send(null);
florianhaar

Reply With Quote


