Ver Mensaje Individual
  #3 (permalink)  
Antiguo 31/07/2002, 13:17
Avatar de ashketchum
ashketchum
 
Fecha de Ingreso: julio-2001
Ubicación: En algun lugar de un gran pais
Mensajes: 418
Antigüedad: 23 años, 11 meses
Puntos: 0
Re: Ayuuuuuda!. Evitar doble click en submit

Mira lo puedes arreglar de 2 formar la primera es esta con ASP:

Código:
<%
If (Not TURecorsert.EOF) then
...Tus instrucciones
End If
%>
y la otra es mediante JSCript, asi como aqui en los foros, el código es este:

Código:
<SCRIPT LANGUAGE="JavaScript">
<!-- 
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements;
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
return true;
}}
//  -->
</script>    


y luego en el form aplicas esto:

Código:
onSubmit="return disableForm(this);"
espero que te sirva

saludos y suerte


<img src="http://www.velazquez.com.mx/masteraspx/firma.jpg" width="465" height="79" border="0" usemap="#URL">
<map name="URL">
<area shape="rect" coords="270,48,347,61" href="http://www.masteraspx.tk" target="_blank">
</map>