This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / html代码问题html里面的drop-down box人家可以做出的效果是,
改变一个drop-down box的内容,另外一个drop-down box里面的内容会自动去数据库更新,这个是form里面的什么属性触发的?
谢谢
-lord_of_ring(魔王转世);
2004-1-13
{169}
(#1559857@0)
-
随便找个网页看看source就知道了,有个event专门是select 改变后就变的,Sun主页上原来有个technology list ,选中一个就把你navigate到别的页
-fatbean(洗心革面 第一千次);
2004-1-13
(#1559878@0)
-
javascript, onchange
-anno(烦人);
2004-1-13
(#1559881@0)
-
我认为用静态html代码不可能实现。如果用动态网页,比如ASP.NET,非常容易。
-sigh71(残荷听雨);
2004-1-13
(#1559884@0)
-
?????用php能写吗???????最好能给个很简单的代码,谢谢
-lord_of_ring(魔王转世);
2004-1-13
{28}
(#1559923@0)
-
selectedindexchanged
-luoboyang(萝卜秧);
2004-1-13
(#1559932@0)
-
哪种语言?
-lord_of_ring(魔王转世);
2004-1-13
(#1559943@0)
-
Several ways
-jchonc(James);
2004-1-13
{606}
(#1559976@0)
-
#1559923?thx
-lord_of_ring(魔王转世);
2004-1-13
(#1559983@0)
-
I have samples for both 1) and 2) in my project, will post tomorrow after get to office. The third one is in my new project, no sample yet.
-jchonc(James);
2004-1-13
(#1560027@0)
-
sorry, but I meant if it's possible in perl?
-lord_of_ring(魔王转世);
2004-1-13
(#1560048@0)
-
Sorry I am not a perl/php guy. I am using ISAPI/DHTML/Javascript in my projects.
-jchonc(James);
2004-1-13
(#1560050@0)
-
: )It's OK.
-lord_of_ring(魔王转世);
2004-1-13
{9}
(#1560076@0)
-
html code should like this:<select id="box1" onchange="getyour2ndbox()">
<option>item1</option>
..
..
</select>
then in this 'get...()' to fill your other dropdown box data.
-luoboyang(萝卜秧);
2004-1-13
{159}
(#1560089@0)
-
Here comes the code for #2
-jchonc(James);
2004-1-14
{1473}
(#1560429@0)
-
The code for #3 is very similar, except the list comes from an xmlhttprequest.respondtext, and require a server side module to return the list.
-jchonc(James);
2004-1-14
(#1560430@0)