Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] compose dynamical forms with JS
- From: javascript@xxxxxxxxxx (Andrew Dunn)
- Subject: [Javascript] compose dynamical forms with JS
- Date: Wed, 29 Jan 2003 12:19:06 +1000
I presume your using document.write and the "zones of text" appear on a new page? I think if you try writing the text within a DIV tag it might work. -----Original Message----- From: noel.jean-baptiste@xxxxxxxxxxxxxxxx [mailto:noel.jean-baptiste@xxxxxxxxxxxxxxxx]=20 Sent: Wednesday, 29 January 2003 12:07 PM To: javascript@xxxxxxxxxx Subject: [Javascript] compose dynamical forms with JS Hello, suppose I have a page HTML: =20 ... =20 < TD><SELECT SIZE=3D"1 "NAME=3D"appoint" onchange=3D"creerText(this) ">=20 <OPTION selected=3D"">0</OPTION >=20 <OPTION>1</OPTION> <OPTION>2</OPTION >=20 </SELECT></TD >... I will wish that when the user selectionne a value (0,1 or 2) the=20 function Javascript creerText() creates a zone of text (textarea)=20 below the selection (<select>) in same page HTML. =20 For example, I thought of following function JS: =20 function creerText(obj) {=20 var zoneText =3D obj.selectedIndex;=20 for all zoneText do: =20 create a textArea; =20 }=20 But here, I do not manage to make so that my zones of text appear=20 below the zone of selection. Indeed, they appear in another page. =20 This page HTML is a form which contains data that the utilsator filled=20 progressively, so data must be saved when function JS is called. In made, it is as if the utilsator built a "form dynamically". =20 For example, the user could say, I would like 2 zones of text, 3 drop- down menu of such size etc... and the page is built dynamically. =20 Is it possible with HTML AND Javascript? =20 Thank you, Jean-Baptiste _______________________________________________ Javascript mailing list Javascript@xxxxxxxxxx https://lists.LaTech.edu/mailman/listinfo/javascript
- Prev by Date: [Javascript] compose dynamical forms with JS
- Next by Date: [Javascript] Why won't this work????
- Previous by thread: [Javascript] compose dynamical forms with JS
- Next by thread: [Javascript] Why won't this work????
- Index(es):