这是一个异步加载的树型控件,点击节点加载子节点。在其它浏览器下均可实现,但是在Ie6中出项当点击节点时弹出一个新窗体!不知如何解决望高手支招,问题解决立即给分。。
新窗体如下:
解决方案 »
- TOMCAT启动问题
- 不显示删除回复显示所有回复显示星级回复显示得分回复 能像优酷一样上传转码并加水印的视频网站
- jsp跳转问题,所有操作都可以进行,跳转时出错,代码和错误都在,帮忙看下
- 如果我在添加1000万条数据时候突然断电怎么办??
- 大家用很通俗的话来描述j2ee
- 关于struts和hibernate的中文协调问题
- JSP利用word自动显示出要打印的内容问题
- 问一个超级菜的问题(不要笑我)
- 怎样把阿拉伯数字转换为中国数字
- 请教:HTTP servlet设置多个Cookie时怎么用另外一个servlet读出?还有个特别麻烦的问题,请看内容
- struts入门,这段程序这样分析对么
- <c:set var="ordertotalmoney" value="${sorder.so_bzmoney+ordertotalmoney}"/>
比如你这个貌似expNodes('002', '软件司');return false;
用了一下还是没解决!
相关代码:
var a = new WebFXTreeItem(nodename,'','',imgpath+nodeIcon,imgpath+nodeIcon);//包;
a.action="javascript:expNodes('"+nodeid+"','"+nodename+"'); a.objectid=objectid;
a.coding = coding;
a.description=description;
frms.add(a);
没做过XTree,但是你这一行的双引号就不匹配,好好检查一下。
if (roots.getSelected().childNodes.length>0) return;
var sURL="/interface4j/appcomponent/organ/IA.do?INTERFACE=appcomponent.purview.organ&CMDTYPE=1&PARENTID="+parentid;
xpo.setURL(webroot+sURL);
xpo.post();
//alert(xpo.getResultStr());
var infolist=xpo.getResultNodes("rs/记录");
if (infolist.length<1){
//alert("没有子节点了!");
//alert(roots.getSelected()+" --- "+roots.getSelected().id);//.parentElement.id);srcElement
document.getElementById(roots.getSelected().id+"-icon").src = imgpath+"view.gif";
return;
}
var eSize = roots.getSelected().childNodes.length;
//alert(eSize);
var eNodes = new Array();
for(i=0;i<eSize;i++){
eNodes[i] = roots.getSelected().childNodes[i].objectid;
//alert(roots.getSelected().childNodes[i].objectid);
}
var eFlg = false;
for(i=0;i<infolist.length;i++){
eFlg = true;
objectid = infolist[i].get("ORGANID");
for(e=0;e<eNodes.length;e++){
if (objectid==eNodes[e]){
eFlg = false;
}
}
if (eFlg){
nodeid=infolist[i].get("ORGANID");
nodename=infolist[i].get("ORGANNAME");
type = infolist[i].get("ORGANLEVEL");
coding = infolist[i].get("ORGANID");
var description = infolist[i].get("ORGANDES");
var nodeIcon = "foldericon.png";
var b = new WebFXTreeItem(nodename,'','',imgpath+nodeIcon,imgpath+nodeIcon);
// b.action="javascript:expNodes('"+nodeid+"','"+nodename+"');";
b.action="javascript:expNodes('"+nodeid+"','"+nodename+"');";
b.objectid=objectid;
b.coding = coding;
b.description=description;
roots.getSelected().add(b);
}
}
roots.expandChildren();
}