Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help with visibility??

Status
Not open for further replies.

lomano

Programmer
Nov 15, 2000
18
CA
I can't get my scrolling text box to hide/unhide when i click and unclick a checkbox in netscape... I know you have to use visibility.show/hide but i must be missing something

Here is my code I have excluded my netscape visibility code because it doesn't work, this seems to work in IE, any suggestions for the code in netscape

<html>

<head><script LANGUAGE=&quot;javascript&quot;>
<!--
function show(){

if (document.all.C1.checked){
document.all(&quot;rnd&quot;).style.visibility = &quot;visible&quot;;
}else{
document.all(&quot;rnd&quot;).style.visibility = &quot;hidden&quot;;
}
}
//-->
</script>

<title>Test</title>
<style type=&quot;text/css&quot;>
.test{
position: relative;
visibility: hidden;
top: 112;
left: 120;
}
</style>
</head>

<body>

<form>
<p><input type=&quot;checkbox&quot; name=&quot;C1&quot; value=&quot;ON&quot; onclick=&quot;show()&quot;></p>
</form>

<form method=&quot;POST&quot; div class=&quot;test&quot; id=&quot;rnd&quot;>
<input type=&quot;hidden&quot; name=&quot;VTI-GROUP&quot; value=&quot;0&quot;><p> </p>
<p> </p>
<table>
<tr>
<td><div align=&quot;left&quot;><p><textarea rows=&quot;2&quot; name=&quot;S1&quot; cols=&quot;20&quot;></textarea></td>
</tr>
</table>
<p> </p>
</form>

<p> </p>

<p> </p>
</body>
</html>

 
I'm not sure, but I don't think you can hide an entire form in netscape. Try placing the textarea inside a div and hide the div. jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top