由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 一个JAVASCRIPT问题:
相关主题
这种MENU指示是怎幺实现的?问个jquery的简单问题
menu question..多个$(document).ready的问题
Just try this code! Re: window.open()的问题?October Headline: Dart enters the top 20 for the first time (转载)
How to do online HTML,XML,DHTML,JavaScript testing?怎么样在个人主页上运行CGI?
请问yahoo omg用得是些什么技术?Re: E文photoshop里如何输入中文? 再问shishishishi
一个简单的Javascript菜单制作的问题Re: New comer, got a bunch of questions
问个javascript的问题DHTML 疑问
Javascript for text wipe effect and glowing有什么好的动态menu吗
相关话题的讨论汇总
话题: javascript话题: text话题: form话题: tutu话题: hi
进入BuildingWeb版参与讨论
1 (共1页)
t**********o
发帖数: 124
1
Hi, ge wei DX
我是JAVASCRIPT 门外汉。I want to create a form with different elements
based on the user's input. But don't know how to do it.
For example:
Given a form which shows only one text field plus a submit button,
after the user enters a number(say, 6), the form then changes to show 6 text
fields, and the original text filed disappeared.
I saw similiar effects before on some website, but forget where they are.
Could anyone here give me some help? Thanx!
tutu
w*****o
发帖数: 92
2
先做个
,其onsubmit可以用以调一个javascript function,
这个function可以再写一个form,其中有相应的 fields,
其数量取决于第一个变量的 submit的value。
其实,你作两个文件(非html的那种,如asp,cfm)进行转输变量会比单用
javascript在同一个html文件里强。

【在 t**********o 的大作中提到】
: Hi, ge wei DX
: 我是JAVASCRIPT 门外汉。I want to create a form with different elements
: based on the user's input. But don't know how to do it.
: For example:
: Given a form which shows only one text field plus a submit button,
: after the user enters a number(say, 6), the form then changes to show 6 text
: fields, and the original text filed disappeared.
: I saw similiar effects before on some website, but forget where they are.
: Could anyone here give me some help? Thanx!
: tutu

b****u
发帖数: 22
3
嘿嘿,看看这个吧
http://developer.apple.com/internet/javascript/choose_form.html
需要用到DHTML,把不同的组件放到不同的层里就行了
源代码和解释在
http://developer.apple.com/internet/javascript/dynamicforms.html

【在 t**********o 的大作中提到】
: Hi, ge wei DX
: 我是JAVASCRIPT 门外汉。I want to create a form with different elements
: based on the user's input. But don't know how to do it.
: For example:
: Given a form which shows only one text field plus a submit button,
: after the user enters a number(say, 6), the form then changes to show 6 text
: fields, and the original text filed disappeared.
: I saw similiar effects before on some website, but forget where they are.
: Could anyone here give me some help? Thanx!
: tutu

t**********o
发帖数: 124
4
嘿嘿,看了, it's really cool! But my situation is that I can not predict how
many fields I need to create.
I have worked out an ugly one, xian jiang ju zhe yong le :)
Thanks again!
tutu

text

【在 b****u 的大作中提到】
: 嘿嘿,看看这个吧
: http://developer.apple.com/internet/javascript/choose_form.html
: 需要用到DHTML,把不同的组件放到不同的层里就行了
: 源代码和解释在
: http://developer.apple.com/internet/javascript/dynamicforms.html

s**********i
发帖数: 711
5
it would be much better submit the first value to
the server then server produce the output as next
page.

【在 t**********o 的大作中提到】
: 嘿嘿,看了, it's really cool! But my situation is that I can not predict how
: many fields I need to create.
: I have worked out an ugly one, xian jiang ju zhe yong le :)
: Thanks again!
: tutu
:
: text

t**********o
发帖数: 124
6
Hi, 事事实实
Why have to bother server? Any disadvantages? Thanks!
tutu
在 shishishishi (shishishishi) 的大作中提到: 】
how
s**********i
发帖数: 711
7

because this kind of job can be easily done by server
not client.

【在 t**********o 的大作中提到】
: Hi, 事事实实
: Why have to bother server? Any disadvantages? Thanks!
: tutu
: 在 shishishishi (shishishishi) 的大作中提到: 】
: how

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
有什么好的动态menu吗请问yahoo omg用得是些什么技术?
[转载] 有谁用过DHTML Menu Builder?一个简单的Javascript菜单制作的问题
DHTML MENU的问题。。。。问个javascript的问题
这种效果是怎么做的?Javascript for text wipe effect and glowing
这种MENU指示是怎幺实现的?问个jquery的简单问题
menu question..多个$(document).ready的问题
Just try this code! Re: window.open()的问题?October Headline: Dart enters the top 20 for the first time (转载)
How to do online HTML,XML,DHTML,JavaScript testing?怎么样在个人主页上运行CGI?
相关话题的讨论汇总
话题: javascript话题: text话题: form话题: tutu话题: hi