Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/03/2006, 15:31
-thor-
 
Fecha de Ingreso: febrero-2006
Mensajes: 446
Antigüedad: 18 años, 3 meses
Puntos: 3
hola,funcion me equivoque en tipear aca,el error es que no coloque onSubmit en el form,lo habia puesto en el input ,no me resulta eso de colocar un mensaje de alert.

realize esto,pero no resulta.
Código:
<script>
function alMenosUno(a, b, c) {

if ((a != "") || (b != "") || (c != ""))
{
                    alert('debe ingresar en al menos uno');
                    }
}
</script>
Código:
<html>
<title>pagina</title>
<head>
<script>
function alMenosUno(a, b, c) {

alert('debe ingresar en al menos uno');
return (a != "" || b != "" || c != "")

}
</script>

</head>
<body>


<form name=formulario action=pagina.php method=post onsubmit="return alMenosUno(fichas_azules.value,fichas_verdes.value, fichas_rojas.value)">

<INPUT type="text" name="fichas_azules"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha" value="ingreso_ficha">

<INPUT type="text" name="fichas_rojas"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha1" value="ingreso_ficha1">

<INPUT type="text" name="fichas_verdes"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha2" value="ingreso_ficha2">
</form>
</body>
</html>