Previous Thread
Next Thread
Print Thread
Rate Thread
#18041 04/01/03 11:58 PM
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I want to creat a dynamic form. What I want to do is create a page with a single drop down menu. Depending on what you select I want changes to occur in page. That is to say I want more form elements to apear after you make your selection. I have toyed with some code from UBB and got the following.

http://www.wethe.com/real_time.php

anyone know how to creat new form elements?

Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I think I found a NICE site to answer my question,

http://developer.apple.com

Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3

Joined: Mar 2002
Posts: 256
Likes: 1
UGN Security Staff
Offline
UGN Security Staff
Joined: Mar 2002
Posts: 256
Likes: 1
umm are you meaning PHP?

Joined: Feb 2002
Posts: 7,203
Likes: 11
Community Owner
Offline
Community Owner
Joined: Feb 2002
Posts: 7,203
Likes: 11
it'd be javascript, I've seen a few good ones, www.radioshack.ca has one lol... If you find out gimme a holler, i'd love to poke around with it!


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
http://developer.apple.com/internet/javascript/

This site has a good tut if you only need to mak a few dynamic changes. I found the form I had to build took far too long to load. Basicaly you build X# of forms all in one page and use CSS the <Div> tag and JavaScript to show and hide the forms or elements.

The script is fairly complicated as far as javascript goes but it is possible.

I found an alomost I deticle solution on http://www.webmonkey.com in the builder section. Thau's Javascript Tutorial, section 5.

Joined: Mar 2002
Posts: 599
UGN's Resident Homo
Offline
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
i think you could use vbScript and it wouldn't be as difficult....

Code
<html>
<head>
<script language=vbScript>
Sub cmdButton_OnClick
Form1.txtBox.style.visibility = "hidden"
End Sub
</script>
</head>
<body>
<form name=Form1>
<input type=text name=txtBox value="">

<input type=button name=cmdButton value="click me">
</form>
</body>
</html>  
and Form1.txtBox.style.visibility = "visible" would make it visible again.


"It's better to burn out, than to fade away."
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I tryed you script here

http://promodtecnologies.com/~rrfn/Scripts/htmltest.html

It didn't work..

Joined: Mar 2002
Posts: 599
UGN's Resident Homo
Offline
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
http://www.currantech.com/vbscript.html

it does work, if you copied it into your thing you likely caused the cmdButton_OnClick to run together with Form1.txtBox.style, it must be on different lines. view the source of my example and see.


"It's better to burn out, than to fade away."
Joined: Dec 2002
Posts: 3,255
Likes: 3
UGN Elite
OP Offline
UGN Elite
Joined: Dec 2002
Posts: 3,255
Likes: 3
I see, /me retract statement. Know any liks to VB tuts? and dose it only work in IE?

Joined: Mar 2002
Posts: 599
UGN's Resident Homo
Offline
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
it didn't work for me in opera or netscape.

there is a vbscript tutorial at:
http://www.intranetjournal.com/corner/wrox/progref/vbt/

use google for more.


"It's better to burn out, than to fade away."

Link Copied to Clipboard
Member Spotlight
Posts: 43
Joined: November 2002
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
unreal 1
Crime 1
Ice 1
Dartur 1
Powered by UBB.threads™ PHP Forum Software 7.7.5