Foros del Web » Programando para Internet » ASP Clásico »

Ver Codigo Validacion

Estas en el tema de Ver Codigo Validacion en el foro de ASP Clásico en Foros del Web. HAGO ESTOY ME ALEGA POR EL RETURN ALGUIEN ME PUEDE AYUDAR <form method="post" action="prue.asp" id="form1" name="form1" LANGUAGE=javascript onsubmit="return valida(this)" > <SCRIPT LANGUAGE=vbscript> <!-- function valida(theform) ...
  #1 (permalink)  
Antiguo 09/01/2002, 13:38
 
Fecha de Ingreso: enero-2002
Mensajes: 97
Antigüedad: 22 años, 4 meses
Puntos: 0
Ver Codigo Validacion

HAGO ESTOY ME ALEGA POR EL RETURN ALGUIEN ME PUEDE AYUDAR

<form method="post" action="prue.asp" id="form1" name="form1" LANGUAGE=javascript onsubmit="return valida(this)" >

<SCRIPT LANGUAGE=vbscript>
<!--
function valida(theform)
if not isdate(theform.aux.value) then
msgbox("Ingrese una fecha Valida")
theform.aux.focus()
valida(false)
else

end if
end function
-->
</SCRIPT>
  #2 (permalink)  
Antiguo 09/01/2002, 13:47
Avatar de sjam7  
Fecha de Ingreso: diciembre-2001
Ubicación: Guadalajara, Mexico
Mensajes: 3.672
Antigüedad: 22 años, 5 meses
Puntos: 16
Re: Ver Codigo Validacion

Bueno, creo que este mensaje esta en el foro equivocado.

Por que no intentas quitando el return?


JAM
[email protected]
  #3 (permalink)  
Antiguo 09/01/2002, 14:15
Avatar de urjose  
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 22 años, 5 meses
Puntos: 1
Re: Ver Codigo Validacion

<html>
<head>
<script language="vbscript">

Sub button_onclick()

if (not (isdate(form1.textfield.value))) then
msgbox ("Ingrese una fecha valida")
form1.textfield.focus()

else
form1.submit()

End if

End Sub


</script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<input type="text" name="textfield">
<input type="button" name="button" value="button">
</form>

</body>
</html>

<embed src="http://www.autocar.com.mx/images/logo.swf" type="application/x-shockwave-flash" width="468" height="60" play="true" wmode="transparent" menu="false" loop="true">
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 08:53.