求制作web树型结构的方法..有提供源代码的高分相送 如果是在web中应用,完全可以采用vb中的ListTree 控件了,在VBscript 中。就是java中,也可以使用java的ListTree 类呀。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 javascript + jsp 参见www.csunsoft.com 利用Javascript/*----------------------------------------------------------------------------\| WAS Tree List (1.0) ||-----------------------------------------------------------------------------|| 基于对象方式构建树表组件,将数据分离,以XMLHTTP方式动态获取, 运行在IE5+。 ||-----------------------------------------------------------------------------|| 2003-10-20 | 从Tree Widget 1.17抽取基础代码,加以XMLHTTP及多列功能。 || 2003-10-22 | 将NODEID从XML中解析,设置可隐藏字段,设定数据URL。 || 2003-10-25 | 各列数据关联URL。 || 2003-10-30 | 动、静态及和树表间切换时BUG和显示风格的修整;在与维护页面整合时 || | 一些方法的调整及新增 ||-----------------------------------------------------------------------------|| Dependencies: css/WasTreeList.css; treelist/*.gif ||-----------------------------------------------------------------------------|| Created 2003-10-20 | Author: Bingle Pen. | Last Updated 2003-10-30 |\----------------------------------------------------------------------------*///树的静态属性及方法WasTreeListHandler = { rootID : 0, nextID : 0, pathIndex : -1, getUniqueID : function() { return this.nextID++; }, allTrees : new Array(), forPrefixs : new Array(), preventRowClick : false, dataAction : "com.detong.ibms.menu.action.MenuAction", dataUrl : "http://localhost:7001/ibms/dxmltreeaction", prefixID : "parentid", prefixAction : "action", isDBClickSelected : false, imgConnectMore : 'connect.more.gif', imgConnectEnd : 'connect.end.gif', imgConnectBridge : 'connect.bridge.gif', imgHandleCollapseMore : 'handle.collapse.more.gif', imgHandleCollapseEnd : 'handle.collapse.end.gif', imgHandleExpandMore : 'handle.expand.more.gif', imgHandleExpandEnd : 'handle.expand.end.gif', imgEmpty : 'empty.gif', imgIconDefault : 'icon.folder.gif', callExpand : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].expand();}, callCollapse : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].collapse();}, callRowClick : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].click();}, addPrefix : function(name,value) {this.forPrefixs[this.forPrefixs.length] = "&"+name+"="+value;}, xmlHTTPStateChange : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].xmlCallback();}, dbClick : function(sID) {if (WasTreeListHandler.isDBClickSelected) this.select(sID);}, click : function(sID) {if (!WasTreeListHandler.isDBClickSelected) this.select(sID);}, onSelect : function(sID) {/** 外部接口,被选中事件触发 **/}, onLoadDataEnd : function() {/** 外部接口,装载完毕事件触发 **/}, select : function(sID,bNotAction) { if (sID == WasTreeListHandler.rootID) return; if (WasTreeList.selectedID!="undefined" && WasTreeList.selectedID!=null) { 求高手指导。。。。 如何用java下载ftp上一个文件夹-最好有代码 set JAVA多线程问题 ResultSet好象是接口,为什么它有具体的方法? (求助)Java在XP下的环境配置,和JCreator的基本安装和配置? 初学java,Applet连接SQL Server时出现如下错误 为什么对的代码报错呢?! 有没有删除JPanel和JLabel的方法啊? 怎么计算每天某一固定时间和系统当前时间的差,以秒为单位。 关于服务器关闭时要执行的代码问题 在java里怎样重载运算符?
| WAS Tree List (1.0) |
|-----------------------------------------------------------------------------|
| 基于对象方式构建树表组件,将数据分离,以XMLHTTP方式动态获取, 运行在IE5+。 |
|-----------------------------------------------------------------------------|
| 2003-10-20 | 从Tree Widget 1.17抽取基础代码,加以XMLHTTP及多列功能。 |
| 2003-10-22 | 将NODEID从XML中解析,设置可隐藏字段,设定数据URL。 |
| 2003-10-25 | 各列数据关联URL。 |
| 2003-10-30 | 动、静态及和树表间切换时BUG和显示风格的修整;在与维护页面整合时 |
| | 一些方法的调整及新增 |
|-----------------------------------------------------------------------------|
| Dependencies: css/WasTreeList.css; treelist/*.gif |
|-----------------------------------------------------------------------------|
| Created 2003-10-20 | Author: Bingle Pen. | Last Updated 2003-10-30 |
\----------------------------------------------------------------------------*/
//树的静态属性及方法
WasTreeListHandler = {
rootID : 0,
nextID : 0,
pathIndex : -1,
getUniqueID : function() { return this.nextID++; },
allTrees : new Array(),
forPrefixs : new Array(),
preventRowClick : false,
dataAction : "com.detong.ibms.menu.action.MenuAction",
dataUrl : "http://localhost:7001/ibms/dxmltreeaction",
prefixID : "parentid",
prefixAction : "action",
isDBClickSelected : false,
imgConnectEnd : 'connect.end.gif',
imgConnectBridge : 'connect.bridge.gif',
imgHandleCollapseMore : 'handle.collapse.more.gif',
imgHandleCollapseEnd : 'handle.collapse.end.gif',
imgHandleExpandMore : 'handle.expand.more.gif',
imgHandleExpandEnd : 'handle.expand.end.gif',
imgEmpty : 'empty.gif',
imgIconDefault : 'icon.folder.gif', callExpand : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].expand();},
callCollapse : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].collapse();},
callRowClick : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].click();},
addPrefix : function(name,value) {this.forPrefixs[this.forPrefixs.length] = "&"+name+"="+value;},
xmlHTTPStateChange : function(treeID, nodeID) {this.allTrees[treeID].allNodes[nodeID].xmlCallback();},
dbClick : function(sID) {if (WasTreeListHandler.isDBClickSelected) this.select(sID);},
click : function(sID) {if (!WasTreeListHandler.isDBClickSelected) this.select(sID);},
onSelect : function(sID) {/** 外部接口,被选中事件触发 **/},
onLoadDataEnd : function() {/** 外部接口,装载完毕事件触发 **/},
select : function(sID,bNotAction) {
if (sID == WasTreeListHandler.rootID) return;
if (WasTreeList.selectedID!="undefined"
&& WasTreeList.selectedID!=null) {