Foros del Web » Programando para Internet » Javascript »

Donde esta el problema?

Estas en el tema de Donde esta el problema? en el foro de Javascript en Foros del Web. Donde esta el error, una pagina casi exacta funciona, pero esta no funciona, la unica diferencia es que aquella es HTML esta es asp. <html> ...
  #1 (permalink)  
Antiguo 05/06/2002, 09:10
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 3 meses
Puntos: 11
Donde esta el problema?

Donde esta el error, una pagina casi exacta funciona, pero esta no funciona, la unica diferencia es que aquella es HTML esta es asp.
<html>
<head>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Wayne Nolting ([email protected]) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form.nombre.value=="") {
themessage = themessage + " - First Name";
}
if (document.form.fichero.value=="") {
themessage = themessage + " - Last Name";
}

//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form.submit();
}
else {
alert(themessage);
return false;
}
}
// End -->
</script>

<link rel="stylesheet" href="../css/addNewForm2.css" type="text/css">
<title>Formulario de envío de ficheros</title>

</head>
<body>
<%
Call DoPageHeader
%>
<h3 align="center">Upload the image.</h3>
<p> </p>
<form action="uptest.asp" method="post" enctype="multipart/form-data" name=form>
<table width="75%" border="0">
<tr>
<td>Comment about the Image</td>
<td>
<textarea name="nombre" cols="50" rows="5"></textarea>
</td>
</tr>
<tr>
<td>Select the image</td>
<td>
<input type="file" name="fichero" size="20">
</td>
</tr>
<tr>
<td> </td>
<td>
<input type="submit" name="submit" onclick="verify();">
</td>
</tr>
<tr>
<td colspan="2">
<center>
<% Call AuctionNavigation %>
</center>
</td>
</tr>
</table>
<br>
<br>
</form>
</body>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</html>

Lo que quiero es que el campo texto no este vacio
  #2 (permalink)  
Antiguo 05/06/2002, 09:25
 
Fecha de Ingreso: julio-2001
Ubicación: Internet
Mensajes: 1.690
Antigüedad: 22 años, 9 meses
Puntos: 1
Re: Donde esta el problema?

Hola!,

Ya te respondi aca:

<a href='ir.asp?http://www.forosdelweb.com/mensaje.asp?id=82449' target='_blank'>http://www.forosdelweb.com/mensaje.asp?i...</a>

<SCRIPT LANGUAGE="javascript" SRC="http://www.galeon.com/jlmnetwork/firma.js"></SCRIPT>
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 23:20.