62,046
社区成员
发帖
与我相关
我的任务
分享
var xmlhttp;
function viewCategory()
{
document.getElementById("divlist").innerText="正在加载论坛列表,请稍候......";
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=stateChange;
xmlhttp.open("POST","CategoryListServer.aspx",true);
xmlhttp.send(null);
}
//判断请求的状态
function stateChange()
{
if(xmlhttp.readystate==4)
{
if(xmlhttp.status==200)
{
document.getElementById("divlist").innerHTML=xmlhttp.responseText;
}
}
}