
24/09/2004, 02:04
|
| | Fecha de Ingreso: enero-2002
Mensajes: 838
Antigüedad: 23 años, 2 meses Puntos: 1 | |
nada q no me funciona... hola JavierB, nada q no consigo q me funcione este dichoso script. Me podrias echar una mano?
a ver este es el codigo del script:
function noVacio1_0(){
if((document.form0.patron1.value == '')||(document.form0.patron2.value == '')||(document.form0.patron3.value == '')||(document.form0.patron4.value == '')||(document.form0.patron5.value == '')||(document.form0.patron6.value == '')){
alert("Para poder introducir patron de inicio ha introducir todos los valores. Si quiere cancelar pulse Salir");
document.form0.patron1.focus();
document.form0.patron2.focus();
document.form0.patron3.focus();
document.form0.patron4.focus();
document.form0.patron5.focus();
document.form0.patron6.focus();
return;
}else{
MM_showHideLayers('patrontick2','','show','patront ick','','hide');
document.getElementById('celda1').innerHTML=docume nt.getElementById('txt1').value
document.getElementById('celda2').innerHTML=docume nt.getElementById('txt2').value;
document.getElementById('celda3').innerHTML=docume nt.getElementById('txt3').value;
document.getElementById('celda4').innerHTML=docume nt.getElementById('txt4').value;
document.getElementById('celda5').innerHTML=docume nt.getElementById('txt5').value;
document.getElementById('celda6').innerHTML=docume nt.getElementById('txt6').value;
}
}
estos son los inputs:
<input value=""name="patron1" id="txt1" style="width:23;height:19;font-size=10px" size="5">
<input value=""name="patron2" id="txt2" style="width:23;height:19;font-size=10px" size="5">
<input value=""name="patron3" id="txt3" style="width:23;height:19;font-size=10px" size="5">
<input value=""name="patron4" id="txt4" style="width:23;height:19;font-size=10px" size="5">
<input value=""name="patron5" id="txt5" style="width:23;height:19;font-size=10px" size="5">
<input value=""name="patron6" id="txt6" style="width:23;height:19;font-size=10px" size="5">
y en el boton de aceptar tengo: onmousedown="noVacio1_0()"
y el error que me da al dejar todos los campos vacios y llenos es:document.form0.patron1.value es nulo o no es un objeto.
muchas gracias
un saludo
__________________ Muchas gracias, saludos. |