Posted By:
Jill_Monroe
Posted On:
Thursday, December 7, 2006 11:48 PM
Hi, how to make this alert the response text in a divider with the id of "content" instead of the whole page of "test.txt" ? It works fine as it stands now, I just need it to show text in a div only and not a whole page. Thank you very much.
xmlhttp.open("GET", "test.txt",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.send(null)