写了一个很简单的用prototype做的atom feed读取, 在Firefox下运行正常, 但是在IE6下怎么也调试不正常.
我的Ajax.Request部分是这样写的, 各位高手能帮我看一下是什么问题吗? 后面附有完整的程序: test03.html, 和prototype.js, 用于测试的feed.xml, 都置于web根目录下就可以运行了.
function getXml(feed_source, element_id) {
var e = $(element_id);
e.innerHTML = "正在读取后台数据......";
var myAjax = new Ajax.Request(
feed_source,
{
method:"get",
onComplete:function(transport) {
var html_output = '';
var obj = transport.responseXML;
var entries = $A(obj.getElementsByTagName("entry"));
entries.each(function(value, index){
html_output += '<a href="'
+ value.getElementsByTagName("link")[0].getAttribute('href')
+'">'+value.getElementsByTagName("title")[0].firstChild.nodeValue+'</a><br />';
});
e.innerHTML = html_output;
}
}
);
}
谢过各位了!
--
FROM 222.128.21.*
附件(32.8KB) prototype_test.zip