ajax菜鸟问题1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<Script language= "JavaScript ">
var xmlHttp=new ActiveXObject( "Msxml2.XMLHTTP ");
xmlHttp.open( "GET ", "http://www.blogjava.net/zbw25/Rss.aspx ",true);
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4 && xmlHttp.status==200){
var xmldom=xmlHttp.responseXML;
var channel=xmldom.documentElement.childNodes.item(0);
var itemlist=channel.childNodes;
blog.innerHTML=channel.tagName;
}
}
xmlHttp.send();
</Script>
<HTML>
<BODY>
<div id= "blog "> </div>
</BODY>
</HTML>
运行之后,出错信息提示blog未定义。应该是blog.innerHTML=channel.tagName;时不认blog.看资料javascript不是能动态的显示出html的内容吗?请高手指点
[解决办法]
去book.csdn.net找本ajax的连载看看吧