|
页面中有这样的代码
function sendListNews(newslist,cloumnId)
{
var news=new Ajax();
var doc=newXMLDocument();
var root=addElement(doc,doc,"news","");
addAttribute(doc,root,"action","top5ListNews");
addAttribute(doc,root,"columnid",cloumnId);
news.doPost("/learn4/TagsHandler",root.xml,function(data){handlerListNews(data,newslist)},'xml');
}
function handlerListNews(q,newslist)
{
//alert(newslist);
var list=q.documentElement.selectNodes("list");
var c="";
c+="<ul>"
for(var i=0;i<list.length;i++)
{
var subtitle = "";
var news = list.item(i);
var aid = news.getAttribute("articleid");
var title = escapeHTML(news.getAttribute("title"));
if(title.length>12){
subtitle = title.substring(0,12)+"...";
}else{
subtitle = title;
}
var orgname = news.getAttribute("orgname");
var orgid = news.getAttribute("orgid");
c+="<li>";
c+="<a href='/learn4/news.do?method=getNewsContent&aid="+aid+"' target='_blank' title='"+title+"'>";
c+=subtitle;
c+="<a>";
c+="<a href='/learn4/news/newsIndexByOrg.jsp?orgid="+orgid+"'><span class='blue_n'>["+orgname+"]</span></a>"
c+="</li>";
}
c+="</ul>"
document.getElementById(newslist).innerHTML=c;
}是用来生成列表内容,但在用lr录制脚本时却没有内容,但是在脚本中有相应的请求语句,我用的是基于url的录制方式.有谁知道原因吗???? |
|