Foros del Web » Programando para Internet » Javascript »

hacer invisible controles

Estas en el tema de hacer invisible controles en el foro de Javascript en Foros del Web. A ver si podeis ayudarme con esto, tengo una funcion que debe d acer invisibles algunos controles, un checkbox...,es posible esto, podeis orientarme un poco?? ...
  #1 (permalink)  
Antiguo 15/07/2004, 00:31
 
Fecha de Ingreso: junio-2004
Mensajes: 91
Antigüedad: 19 años, 11 meses
Puntos: 0
hacer invisible controles

A ver si podeis ayudarme con esto, tengo una funcion que debe d acer invisibles algunos controles, un checkbox...,es posible esto, podeis orientarme un poco??
He probado con
Form.check.visible = false;
pero no va...
  #2 (permalink)  
Antiguo 15/07/2004, 09:18
Avatar de salvica  
Fecha de Ingreso: agosto-2003
Ubicación: Albacete - España
Mensajes: 23
Antigüedad: 20 años, 8 meses
Puntos: 0
No se como los estás creando, pero yo lo hago asi:

Código PHP:
<input type="submit" name="boton01" value="MÁS INFORMACIÓN" style="visibility:hidden"
Luego se supone que debes llamar la la propiedad Style y modificarla (no sé si mediante Style.visibility=normal o mediante Style="")

PDTA.: En este mismo foro dan la respuesta, debes hacer:
Código PHP:
Para verlo:
Form.check.style.visibility='visible';
Para ocultarlo:
Form.check.style.visibility='hidden'

Última edición por salvica; 15/07/2004 a las 10:18
  #3 (permalink)  
Antiguo 15/07/2004, 23:57
Avatar de chalchis  
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 9 meses
Puntos: 21
funciona tanto en ie y en mozilla

<html>
<head>
<title></title>
<script type="text/javascript">


function ver()
{
//document.getElementById('celda1').style.display='b lock';
var tester = document.getElementById('Tester');
// if ( tester.style.display == 'none' )
//{
// if (document.all)
tester.style.display = 'block';
//else
// tester.style.display = '';
//}
//else
//{
//tester.style.display = 'none';
//}
}

function ciego()
{
//document.getElementById('celda1').style.display='n one';
var tester = document.getElementById('Tester');
// if ( tester.style.display == 'none' )
//{
// if (document.all)
// tester.style.display = 'block';
//else
// tester.style.display = '';
//}
//else
//{
tester.style.display = 'none';
//}
}

</script>



<style type="text/css">
<!--
.button { font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
-->
</style>
</head>

<body >

<table width="682" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="99"><input name="tipotxt" type="radio" value="0" onClick="ciego()">
<strong>Invitado</strong></td>
<td width="202"><input name="tipotxt" type="radio" value="radiobutton" onClick="ver()">
<strong>Registrado</strong></td>
<td width="197">&nbsp;</td>
<td width="87">&nbsp;</td>
<td width="28">&nbsp;</td>
<td width="27">&nbsp;</td>
<td width="26">&nbsp;</td>
</tr>
<tr valign="top" >
<td colspan="7"><table width="570" border="0" cellpadding="0" cellspacing="0" id="Tester" style="display: none">
<tr bgcolor="#999999">
<td width="97">&nbsp;</td>
<td width="250"><strong>
<input type="checkbox" name="menu122" value="32768">
uno </strong></td>
<td width="223"><strong>
<input type="checkbox" name="menu322" value="8">
cuatro</strong> </td>
</tr>
<tr bgcolor="#999999" >
<td>&nbsp;</td>
<td><strong>
<input type="checkbox" name="menu6222" value="16" >
dos </strong></td>
<td><strong>
<input type="checkbox" name="menu422" value="2">
cinco</strong> </td>
</tr>
<tr bgcolor="#999999" >
<td>&nbsp;</td>
<td><strong>
<input type="checkbox" name="menu222" value="4">
tres</strong> </td>
<td><strong>
<input type="checkbox" name="menu522" value="1" onClick="habilitagrupo_grado()">
sesi</strong></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2">&nbsp; </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<fieldset class="fieldset">
<legend>
<label for="ctb_field5"></label>
</legend>
</fieldset>
<p>&nbsp;</p>
</body>

</html>
__________________
gerardo
  #4 (permalink)  
Antiguo 16/07/2004, 01:06
 
Fecha de Ingreso: junio-2004
Mensajes: 91
Antigüedad: 19 años, 11 meses
Puntos: 0
Muchas graciasss a ambos, voy a ver que tal

Va de artee

Última edición por josemari107; 16/07/2004 a las 01:31
  #5 (permalink)  
Antiguo 18/07/2004, 01:31
Avatar de chalchis  
Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 20 años, 9 meses
Puntos: 21
ok avisame si te sirvio
__________________
gerardo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:11.