Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2010, 15:29
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 17 años, 4 meses
Puntos: 126
Respuesta: Por que no funciona en mozilla?

Hola
Cita:
Iniciado por franjgg Ver Mensaje
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 original
  1. function comparar(f){
  2.  
  3. auxfec1=parseInt(Date.parse(f.variable_1.value));
  4. auxfec2=parseInt(Date.parse(f.variable_2.value));
  5.  
  6. if (auxfec1 <= auxfec2){ // < menos; > mayor
  7. alert('fecha1 debe ser mayor que fecha2');
  8. return(false);
  9. }
  10. return(true);
  11. }
  12. </script>
  13.  
  14. </head>
  15. <body>
  16. <form action="recibe.asp" method="post" name="formularioRangos" target="_self" id="formularioRangos" onsubmit="return comparar(this);">
  17. Entre el
  18. <input size="10" id="fc_1152731202" type="text" name="variable_1" title="DD/MM/YYYY" >
  19. y el
  20. <input size="10" id="fc_1152731203" type="text" name="variable_2" title="DD/MM/YYYY" >
  21. <input type="submit" name="Submit" value="Buscar">
  22. </form>
  23. <p>&nbsp; </p>
Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />