Hola
Cita:
Iniciado por franjgg
Hola Amigo gracias por tu ayuda, acabo de cambiar la funcion por la que me has propuesto pero me sigue pasando igual, funciona muy bien en explorer pero en mozilla nada de nada, que raro es, no entiendo colega a ver si alguien puede decir que puede estar pasasndo.
Un saludo colega
Sí, si que es raro, sobre todo por que acabo en probarlo y funciona
Código Javascript
:
Ver originalfunction comparar(f){
auxfec1=parseInt(Date.parse(f.variable_1.value));
auxfec2=parseInt(Date.parse(f.variable_2.value));
if (auxfec1 <= auxfec2){ // < menos; > mayor
alert('fecha1 debe ser mayor que fecha2');
return(false);
}
return(true);
}
</script>
</head>
<body>
<form action="recibe.asp" method="post" name="formularioRangos" target="_self" id="formularioRangos" onsubmit="return comparar(this);">
Entre el
<input size="10" id="fc_1152731202" type="text" name="variable_1" title="DD/MM/YYYY" >
y el
<input size="10" id="fc_1152731203" type="text" name="variable_2" title="DD/MM/YYYY" >
<input type="submit" name="Submit" value="Buscar">
</form>
<p> </p>
Suerte