Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/07/2007, 20:24
glory82
 
Fecha de Ingreso: febrero-2007
Mensajes: 139
Antigüedad: 18 años, 3 meses
Puntos: 0
Re: Borra datos cuando da clic en boton

Le quite cositas al codigo para ver si lo pueden ver. El boton, que al presionar me borra lo que se ha escrito arriba es Acciones.

Código HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Ingreso Datos Operario Lavadora</title>
  <script language="JavaScript"> 
   function habilita(){ 
    this.form.acciones.disabled = false; 
   } 
   function deshabilita(){ 
    this.form.acciones.disabled = true; 
   } 
  </script> 
</head>

<body>
<p align="center"><font color="#009933">Ingrese la fecha, ingrese los datos, 
verifique el ingreso y pulse el botón Grabar:</font></p>
<p align="center"><strong><font face="Arial" size="2"><font color="#FF00FF">
Positivo:&nbsp; P</font><font color="#009933"><font color="#FF0000"> </font>-<font color="#FF0000">&nbsp;</font></font><font color="#0000FF">
Negativo: N</font></font></strong></p>
<form name="form1" method="post" action>
  <div align="center"><center>
	<table style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 8pt; font-family: verdana"
  bordercolor="#009933" cellspacing="2" cellpadding="4" align="center" border="1" height="142" width="535">
<tbody>
    <tr>
      <td width="518" height="35" align="center" colspan="5"><font color="#009933"><strong>
		DATOS MANUALES INGRESADOS POR EL OPERARIO DE LAVADORA</strong></font></td>
    </tr>
    <tr align="center">
      <td width="149" height="32" align="center"><div align="left"><p><font face="Arial">
		Fecha</font></td>
      <td nowrap="nowrap" width="357" height="32" align="center" colspan="4"><div
      align="center"><center><p><font face="Arial"><select name="Ano" size="1">
        <option value="2006">2006</option>
        <option value="2007" selected>2007</option>
      </select> <select name="Mes" size="1">
        <option value="1">ENERO</option>
        <option value="2">FEBRERO</option>
        <option value="3">MARZO</option>
      </select> </font><font color="#009333">&nbsp;</font></td>
    </tr>
    <tr align="center">
      <td width="149" height="1" align="center" bgcolor="#99FFCC" rowspan="8"><font color="#008000" size="3">
		Lavadora</font></td>
  </center>
    </tr>
      <center>
    <tr align="center">
      <td width="357" height="32" align="center" colspan="4" bgcolor="#99FFCC"><font
      color="#008040" size="3">Presiones del enjuague</font></td>
    </tr>
    <tr align="center">
      <td width="92" height="32" align="center" valign="middle">&nbsp;</td>
      <td width="75" height="32" align="center" valign="middle"><font face="Arial">
		Directa</font></td>
      <td width="75" height="32" align="center" valign="middle"><font face="Arial">
		Recirculada</font></td>
      <td width="80" height="32" align="center" valign="middle"><div align="center"><center><p><font face="Arial">
		Recuperada</font>
          </div>
        </center></td>
    </tr>
    <tr align="center">
      <td width="92" height="33" align="left">&nbsp;</td>
      <td width="75" height="33" align="center"><font face="Arial"><input type="text"
      name="PDta" size="6"></font></td>
      <td width="75" height="33" align="center"><font face="Arial"><input
      type="text" name="PReci" size="6"></font></td>
      <td width="80" height="33" align="center"><div align="center"><center><p><font face="Arial"><input type="text"
      name="PRecu" size="6"></font></td>
    </tr>
    <tr align="center">
      <td width="357" height="33" align="center" colspan="4" bgcolor="#99FFCC"><font
      color="#008040" size="3">Prueba de Pelusa</font></td>
    </tr>
    <tr align="center">
      <td width="92" height="33" align="left"><div align="center"><center><p>Hora
          </div>
        </center></td>
      <td width="75" height="33" align="center">Izquierdo</td>
      <td width="75" height="33" align="center">Centro</td>
      <td width="80" height="33" align="center">&nbsp;</td>
    </tr>
    <tr align="center">
      <td width="92" height="33" align="left"><div align="center"><p><font
      color="#009333"><select name="HoraB" size="1">
        <option value="00">0</option>
        <option value="01">1</option>
        <option value="02">2</option>
      </select></font></div>
      </td>
      <td width="75" height="33" align="center"><strong><font size="2">P</font><font size="2">
      
        <input type="radio" name="PPIzq"  onclick = "document.getElementById('elBoton').disabled = false;" value="1"></font><font color="#0000FF">N</font><font color="#009933"></font>
        <input type="radio" name="PPIzq"  onclick = "document.getElementById('elBoton').disabled = true;"  value="0" checked></strong></td><td width="75" height="33" align="center"><strong><font size="2">
		P</font><font size="2">
        
        
        <input type="radio" name="PPCen" onclick = "document.getElementById('elBoton').disabled = false;" value="1"><font color="#0000FF">  
		N</font><font color="#009933"></font>
        <input type="radio" name="PPCen" onclick = "document.getElementById('elBoton').disabled = true;"  value="0" checked></font></strong></td> <td width="80" height="33" align="center">&nbsp;</td>
    </tr>
    
    <tr align="center">
      <td width="322" height="33" align="left" colspan="4">
      
      <p align="center"><input type="submit" id="elBoton" name="acciones" value="Acciones Correctivas" disabled="disabled" >
      </td>
    </tr>
<%if request.form("acciones") = "Acciones Correctivas" then%>   
    <tr align="center">
      <td width="149" height="7" align="center" bgcolor="#99FFCC" rowspan="3"><strong><font color="#009933" size="3"><u>
		Acciones&nbsp; Correctivas</u>&nbsp; <u>Prueba de Pelusa Positiva</u></font></strong></td>
      <td width="322" height="33" align="left" colspan="4">
        <font face="Verdana" size="1"><input type="checkbox" name="C1" value="ON">
        Bombeo de tubería de enjuagues.</font>
      </td>
    </tr>
    
    <tr align="center">
      <td width="322" height="33" align="left" colspan="4">
      <font face="Verdana"><input type="checkbox" name="C2" value="ON">
        Aseo a tanques y filtros de enjuagues.</font>
      </td>
    </tr>
    
    <tr align="center">
      <td width="322" height="33" align="left" colspan="4">
      <font face="Verdana"><input type="checkbox" name="C7" value="ON">Otras&nbsp;&nbsp;&nbsp;
      </font><strong><font size="3" color="#009933"><textarea rows="2" name="Observacion" cols="27" id="Accion" onKeyPress="ContChar()"></textarea></font></strong>
      </td>
    </tr>
    <tr align="center">
      <td width="149" height="30" align="center" bgcolor="#99FFCC" rowspan="3"><b>
        <font size="3" color="#009933">Después de hacer&nbsp; anteriores 
		Acciones, repetir prueba.</font></b></td>
      <td width="322" height="33" align="left" colspan="4" bgcolor="#99FFCC">
      <p align="center"><b><font size="3" color="#009933">Repeticion de Prueba 
		de Pelusa</font></b>
      </td>
    </tr>
    
    <tr>
      <td width="92" height="33" align="left"><div align="center"><p>Hora 
          </div>
      </td>
      <td width="75" height="33" align="center">Izquierdo</td>
      <td width="75" height="33" align="center">Centro</td>
      <td width="80" height="33" align="center">Derecho</td>
    </tr>
    <tr>
      <td width="92" height="58" align="left"><div align="center"><p><font
      color="#009333"><select name="HoraB1" size="1">
        <option value="00">0</option>
        <option value="01">1</option>
        <option value="02">2</option>
      </select></font></div>
      </td>
      <td width="75" height="58" align="center"><strong><font size="2">P
      
        <input type="radio" name="PPIzq1" value="1"></font><font color="#0000FF">N</font>
        <input type="radio" name="PPIzq1" value="0" checked></strong></td><td width="75" height="58" align="center"><strong><font size="2">P
        
        <input type="radio" name="PPCen1"  value="1"><font color="#0000FF">N</font>
        <input type="radio" name="PPCen1"  value="0" checked></font></strong></td> <td width="80" height="58" align="center"><font face="Arial"><strong><font size="2">P
        
        <input type="radio" name="PPDer1"  value="1"><font color="#0000FF">N</font>
        <input type="radio" name="PPDer1"  value="0" checked></font></strong></font></td>
    </tr>
<%end if%>   
  </table>
  </center></div><div align="center"><center><p>
	<input type="submit" name="Guardar"
  value="Guardar"> </p>
  </center></div>
</form>
<p align="center">&nbsp;</p>
<%if request.form("Guardar") = "Guardar" then
'codigo
end if%>
</body>
</html>