用DW做VBSCRIPT的网页,关联下拉菜单怎么做?

来源:百度知道 编辑:UC知道 时间:2024/06/25 19:32:08
我用Access建了一个数据库db.mdb,包含了两个表:s_type和type_tree。
表s_type的字段为:id,s_name,type_name。
id为自动编号,s_name为城市的名字,type_name为城市对应的省份的名字。
表type_tree的字段为:id,type_name。
id为自动编号,type_name为省份的名字。
现用DW做了两个下拉菜单,分别为select和select2,
在select显示省份的名字,在select2里面显示对应的城市的名字。
前着选择发生变化时引起后者发生变化。

我做出来后,在select2里面显示了所有的城市名。前面的select发生变化时后者并未发生变化。我是通过:服务器行为--》动态列表/菜单对话框进行设置的。

各位高手,怎么做啊?
最好是直接用DW怎么做

这个首先要看你数据库是怎么建的我的思路是:
表名 china
id name level fartherID
china1 中国 1 china0
china2 贵州 2 china1
china3 遵义 3 china2
china4 湖南 2 china1
china5 长沙 3 china4
其他类似
name是名字 level是等级 fartherlID是父等级ID
select name from china where level =2的集合放在一及的下拉菜单里,select name from chian where fartherlID in(select id from name =[一及菜单传过来的参数] )
还有重要的一点就是每选一定一次页面都要自动刷新一次!否则是出不来的,思路给你讲了,试这自己做下吧!你会有很多收获的!