Foros del Web » Programando para Internet » Javascript »

Extraño: No se me activa casilla verificación

Estas en el tema de Extraño: No se me activa casilla verificación en el foro de Javascript en Foros del Web. Hola a todos. Tengo un formulario en php en el que tienes que aceptar unos terminos y condiciones para poder enviar la información cubierta. De ...
  #1 (permalink)  
Antiguo 05/05/2008, 12:13
 
Fecha de Ingreso: enero-2008
Mensajes: 73
Antigüedad: 16 años, 3 meses
Puntos: 2
Extraño: No se me activa casilla verificación

Hola a todos. Tengo un formulario en php en el que tienes que aceptar unos terminos y condiciones para poder enviar la información cubierta. De tal forma que si no marcas la casilla de verificación, el botón enviar estará desactivado. El caso es que me funciona perfectamente en un alojamiento gratuito que tengo en Lycos, pero cuando lo pruebo en un hosting que me compré, no se me activa el botón. ¿Sabeis de que puede ser??
Gracias a todos.
  #2 (permalink)  
Antiguo 05/05/2008, 12:19
 
Fecha de Ingreso: febrero-2006
Mensajes: 858
Antigüedad: 18 años, 2 meses
Puntos: 4
Re: Extraño: No se me activa casilla verificación

mm haber muestra tu codigo
__________________
*La amistad se multiplica cuando se divide*
  #3 (permalink)  
Antiguo 05/05/2008, 12:33
 
Fecha de Ingreso: enero-2008
Mensajes: 73
Antigüedad: 16 años, 3 meses
Puntos: 2
Re: Extraño: No se me activa casilla verificación

Código:
<body>
<p>&nbsp;</p>

<table width="554" border="0" align="center">
  <tr>
    <td width="3" height="27">&nbsp;</td>
    <td width="552" valign="top" background="fondowapo2.jpg"><p align="left" class="Estilo27 Estilo14 Estilo37"><span class="Estilo27 Estilo14 Estilo2">
        <?php
$archivo = "resultados.txt";
$abrir = fopen($archivo, "r");
$contenido = fread($abrir, filesize($archivo));
fclose($abrir);
?>
        <?php
echo $contenido; //aquí aparecen los comentarios
?>
      </span></p>
      <p align="center" class="Estilo27 Estilo14 Estilo37">&nbsp;</p>
      <hr color="#333333">
<form action="aresultados.php" method="post" name="form1" id="form1">
  <blockquote>
    <blockquote>
      <blockquote>
        <p align="left"><span class="Estilo35">Nombre</span></p>
        <p align="left">:
          <input type="text" name="nombre" id="nombre" maxlength="10">
        </p>
        <p align="left">&nbsp;</p>
      </blockquote>
      </blockquote>
    </blockquote>
  <div align="left">
    <blockquote>
      <blockquote>
        <blockquote>
          <p align="center">&nbsp;</p>
          <p align="left">&nbsp;</p>
        </blockquote>
      </blockquote>
    </blockquote>
    <p align="center" class="Estilo35">n&ordm;1 
      <input name="comentariop" type="text" id="comentariop" size="2" maxlength="2" />
      n&ordm;2 
      <label></label>
        <label></label>
        <input name="comentariop2" type="text" id="comentariop2" size="2" maxlength="2" />
        <label></label>
    </p>
    <p align="center" class="Estilo35">
      <script language="JavaScript">
function acuerdo (vlr) {
form1.bsubmit.disabled = !(vlr);
}



</script></head>



&nbsp;</p>
  </div>
  <div align="center">
    <p align="center"><label></label>
        <br />
        <span class="Estilo15"><br />
        <label></label>
        </span></p>
    <p align="center">
      <input type="checkbox" name="check" onClick="acuerdo(this.checked)">
      <span class="Estilo14"><em>Estoy de acuerdo con los</em></span> <a href="terminos.html" target="_blank"> Términos y Condiciones</a>
<span class="Estilo15">
<br>
<br>

<label>
<input type="submit" name="bsubmit" value="Apostar" disabled="disabled">
  <label></label>
  <br /></p>
    <p align="right" class="Estilo38"><a href="comentarios1.html"><span class="Estilo14  Estilo38"></a></p>
</div>
</form>
<p></p>    </td>
    <td width="10">&nbsp;</td>
  </tr>
  <tr>
    <td height="27">&nbsp;</td>
    <td valign="top" background="fondowapo2.jpg"><img src="ABA.jpg" width="550" height="1" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
  #4 (permalink)  
Antiguo 05/05/2008, 12:35
 
Fecha de Ingreso: febrero-2006
Mensajes: 858
Antigüedad: 18 años, 2 meses
Puntos: 4
Re: Extraño: No se me activa casilla verificación

Esta raro a mi me funciona...
te deberia funcionar....
__________________
*La amistad se multiplica cuando se divide*
  #5 (permalink)  
Antiguo 05/05/2008, 12:40
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Extraño: No se me activa casilla verificación

Tema trasladado a Javascript.
  #6 (permalink)  
Antiguo 05/05/2008, 13:14
 
Fecha de Ingreso: enero-2008
Mensajes: 73
Antigüedad: 16 años, 3 meses
Puntos: 2
Re: Extraño: No se me activa casilla verificación

El caso es que para enviarte el código le saque tablas y demás para que no fuera tan largo. Y ese código (el de arriba) a mi también me va, pero en el completo no se me activa el botón. Bueno, se me activa si lo subo a lycos, pero si lo subo al otro hosting no. Te mando el código completo (el que no me va)

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>erg</title>
<style type="text/css">
<!--
body,td,th {
	color: #000000;
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
body {
	background-color: #003366;
}
.Estilo2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
a:link {
	text-decoration: none;
	color: #CCCCCC;
}
a:visited {
	text-decoration: none;
	color: #CCCCCC;
}
a:hover {
	text-decoration: underline;
	color: #CCCCCC;
}
a:active {
	text-decoration: none;
	color: #CCCCCC;
}
.Estilo14 {color: #FFFFFF}
.Estilo21 {font-size: 12px; font-weight: bold; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; }
.Estilo25 {font-size: 16px; color: #003366; font-family: Verdana, Arial, Helvetica, sans-serif;}
.Estilo26 {font-size: 16px}
.Estilo27 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Estilo28 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #003366;}
.Estilo31 {font-size: 11px}
.Estilo32 {font-size: 11px; font-weight: bold; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; }
.Estilo35 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 14px; }
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link rel="shortcut icon" href="favicon.ico" >
      <link rel="icon" href="animated_favicon1.gif" type="image/gif" >
      <style type="text/css">
<!--
.Estilo33 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; }
.Estilo36 {color: #003366}
.Estilo37 {font-size: 14px}
.Estilo38 {
	font-size: 14px;
	color: #FFFFFF;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
      </style>
</head>

<body>
<p>&nbsp;</p>
<table width="554" border="0" align="center">
  <tr>
    <td width="3" height="27">&nbsp;</td>
    <td width="552" valign="top" background="fondowapo2.jpg"><p align="left" class="Estilo27 Estilo14 Estilo37"><span class="Estilo27 Estilo14 Estilo2">
        <?php
$archivo = "resultados.txt";
$abrir = fopen($archivo, "r");
$contenido = fread($abrir, filesize($archivo));
fclose($abrir);
?>
        <?php
echo $contenido; //aquí aparecen los comentarios
?>
      </span><A NAME="nombre_etiqueta" class="Estilo36"></A> </p>
      <p align="center" class="Estilo27 Estilo14 Estilo37">&nbsp;</p>
      <hr color="#333333">
<form action="aresultados.php" method="post" name="form1" id="form1">
  <blockquote>
    <blockquote>
      <blockquote>
        <p align="left"><span class="Estilo35">Nombre</span></p>
        <p align="left">:
          <input type="text" name="nombre" id="nombre" maxlength="10">
        </p>
        <p align="left">&nbsp;</p>
      </blockquote>
      </blockquote>
    </blockquote>
  <div align="left">
    <blockquote>
      <blockquote>
        <blockquote>
          <p align="center"><span class="Estilo35">Resultado</span></p>
          <p align="left">&nbsp;</p>
        </blockquote>
      </blockquote>
    </blockquote>
    <p align="center" class="Estilo35">N&ordm; 1  
      <input name="comentariop" type="text" id="comentariop" size="2" maxlength="2" />
      N&ordm;2 
      <label></label>
        <label></label>
        <input name="comentariop2" type="text" id="comentariop2" size="2" maxlength="2" />
        <label></label>
    </p>
    <p align="center" class="Estilo35">
      <script language="JavaScript">
function acuerdo (vlr) {
form1.bsubmit.disabled = !(vlr);
}



</script></head>



&nbsp;</p>
  </div>
  <div align="center">
    <p align="center"><label></label>
        <br />
        <span class="Estilo15"><br />
        <label></label>
        </span></p>
    <p align="center">
      <input type="checkbox" name="check" onClick="acuerdo(this.checked)">
      <span class="Estilo14"><em>Estoy de acuerdo con los</em></span> <a href="terminos.html" target="_blank"> <u>Términos y Condiciones</u></a>
<span class="Estilo15">
<br>
<br>

<label>
<input type="submit" name="bsubmit" value="Apostar" disabled="disabled">
  <label></label>
  <br /></p>
    <p align="right" class="Estilo38"><a href="comentarios1.html"><span class="Estilo14  Estilo38"></a></p>
</div>
</form>
<p></p>    </td>
    <td width="10">&nbsp;</td>
  </tr>
  <tr>
    <td height="27">&nbsp;</td>
    <td valign="top" background="fondowapo2.jpg"><img src="ABA.jpg" width="550" height="1" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
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 22:18.