UGN Security

Anyone good with javascript?

Posted By: §intå×

Anyone good with javascript? - 04/02/03 06:58 AM

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?
Posted By: §intå×

Re: Anyone good with javascript? - 04/02/03 07:53 AM

I think I found a NICE site to answer my question,

http://developer.apple.com
Posted By: §intå×

Re: Anyone good with javascript? - 04/02/03 07:54 AM

http://developer.apple.com/internet/javascript/
Posted By: ninjaneo

Re: Anyone good with javascript? - 04/03/03 04:29 PM

umm are you meaning PHP?
Posted By: Gremelin

Re: Anyone good with javascript? - 04/03/03 07:19 PM

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!
Posted By: §intå×

Re: Anyone good with javascript? - 04/05/03 07:58 AM

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.
Posted By: BackSlash

Re: Anyone good with javascript? - 04/06/03 06:52 PM

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.
Posted By: §intå×

Re: Anyone good with javascript? - 04/10/03 08:17 AM

I tryed you script here

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

It didn't work..
Posted By: BackSlash

Re: Anyone good with javascript? - 04/10/03 08:57 PM

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.
Posted By: §intå×

Re: Anyone good with javascript? - 04/11/03 06:37 AM

I see, /me retract statement. Know any liks to VB tuts? and dose it only work in IE?
Posted By: BackSlash

Re: Anyone good with javascript? - 04/11/03 07:24 PM

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.
© 2017 UGN Security Forum