Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Dynamic checkbox?


Message #1 by "Omar Esquivel" <omare@u...> on Fri, 26 Jul 2002 16:16:03
Is there a way to make a dynamic checkbox?,
For example IŽd like to have a checkbox that when checked it automatically 
generates a textbox, in the same page, and if the checkbox remains 
unchecked then no textbox appears.

Could it be possible?

Thanx for any help you can provide.

Omare
Message #2 by "Debreceni, David" <david_debreceni@r...> on Fri, 26 Jul 2002 11:16:05 -0400
You could use javascript to make the textbox visible or not through use of
css, the problem you may run into is netscape 4.  I am not positive how much
css it supports.

 
 
David Debreceni
Senior VB/ASP Developer
david_debreceni@r... <mailto:david_debreceni@r...> 
xxx-xxx-xxxx  x1086


-----Original Message-----
From: Omar Esquivel [mailto:omare@u...]
Sent: Friday, July 26, 2002 12:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamic checkbox?



Is there a way to make a dynamic checkbox?,
For example IŽd like to have a checkbox that when checked it automatically 
generates a textbox, in the same page, and if the checkbox remains 
unchecked then no textbox appears.

Could it be possible?

Thanx for any help you can provide.

Omare

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #3 by "Drew, Ron" <RDrew@B...> on Fri, 26 Jul 2002 11:19:30 -0400
Use Javascript and Div.....this example with hide and unhide "my hidden 
stuff...change it to a textbox
<html>
<head>
<script language=3D"javascript">
function makeVisible(x){
	if(x=3D=3D1){
	hideme.style.visibility=3D'visible'
	}else{
	hideme.style.visibility=3D'hidden'
	}
}
</script>
</head>
<body>
<input type=3D"checkbox" id=3D"radDate" name=3D"radDate" 
onclick=3D"makeVisible(1)" />
Unhide
<input type=3D"checkbox" id=3D"radDate" name=3D"radDate" 
onclick=3D"makeVisible(2)" />
Hide
<div id=3D"hideme" style=3D"visibility:hidden">my hidden stuff</div>

-----Original Message-----
From: Omar Esquivel [mailto:omare@u...]
Sent: Friday, July 26, 2002 12:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamic checkbox?



Is there a way to make a dynamic checkbox?,
For example I=B4d like to have a checkbox that when checked it 
automatically
generates a textbox, in the same page, and if the checkbox remains
unchecked then no textbox appears.

Could it be possible?

Thanx for any help you can provide.

Omare

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus 
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites 
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web 
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #4 by "Johnson, Israel" <IJohnson@R...> on Fri, 26 Jul 2002 11:40:34 -0400
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
	<script language=3D"JavaScript">
	function judge()
	{
		var Box =3D document.getElementById("invisibleText")
		if(Box.style.visibility=3D=3D"hidden")
		{
			Box.style.visibility =3D "visible";
		}
		else if(Box.style.visibility=3D=3D"visible")
		{
			Box.style.visibility =3D "hidden";
		}
	}
	</script>
</head>

<body>
<form>
<input type=3D"Checkbox" name=3D"checkverify" onclick=3D"judge()" >
<input name=3D"invisibleText" type=3D"Text" value=3D"" 
style=3D"visibility :
hidden;">
</form>
</body>
</html>

-----Original Message-----
From: Omar Esquivel [mailto:omare@u...]
Sent: Friday, July 26, 2002 12:16 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Dynamic checkbox?



Is there a way to make a dynamic checkbox?,
For example I=B4d like to have a checkbox that when checked it 
automatically
generates a textbox, in the same page, and if the checkbox remains
unchecked then no textbox appears.

Could it be possible?

Thanx for any help you can provide.

Omare

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
me
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
r-20

  Return to Index