Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#18041 - 04/02/03 06:58 AM Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
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?


My New site OpenEyes
Sponsored Links
#18042 - 04/02/03 07:53 AM Re: Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
I think I found a NICE site to answer my question,

http://developer.apple.com


My New site OpenEyes
#18043 - 04/02/03 07:54 AM Re: Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland


My New site OpenEyes
#18044 - 04/03/03 04:29 PM Re: Anyone good with javascript?  
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo  Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
umm are you meaning PHP?

#18045 - 04/03/03 07:19 PM Re: Anyone good with javascript?  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
it'd be javascript, I've seen a few good ones, http://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
Sponsored Links
#18046 - 04/05/03 07:58 AM Re: Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
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
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.


My New site OpenEyes
#18047 - 04/06/03 06:52 PM Re: Anyone good with javascript?  
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash  Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."
#18048 - 04/10/03 08:17 AM Re: Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
I tryed you script here

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

It didn't work..


My New site OpenEyes
#18049 - 04/10/03 08:57 PM Re: Anyone good with javascript?  
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash  Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."
#18050 - 04/11/03 06:37 AM Re: Anyone good with javascript?  
Joined: Dec 2002
Posts: 3,255
§intå× Offline
§intå×  Offline



Joined: Dec 2002
Posts: 3,255
Likes: 1
Maryland
I see, /me retract statement. Know any liks to VB tuts? and dose it only work in IE?


My New site OpenEyes
Sponsored Links
#18051 - 04/11/03 07:24 PM Re: Anyone good with javascript?  
Joined: Mar 2002
Posts: 599
BackSlash Offline
UGN's Resident Homo
BackSlash  Offline
UGN's Resident Homo

Joined: Mar 2002
Posts: 599
TN
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."

Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics46,754
Posts81,924
Average Daily Posts11
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,918
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)