Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/03/2005, 21:57
Avatar de g_susdaniel
g_susdaniel
 
Fecha de Ingreso: mayo-2001
Ubicación: Frente al Monitor :þ
Mensajes: 995
Antigüedad: 23 años, 10 meses
Puntos: 0
te puedes valer de varios artificios se me ocurren como 3, pero t voy a decir el q use mas recientemente... y te digo q te tienes q valer es del javascript, asi que voy a aprovechar de mover tu tema xD ...

Código:
<script  language="JavaScript">
function openWindow(theURL,winName,features) {
  	window.open(theURL,winName,features);
}


function CheckForm () {

	var errorMsg = "";

	//Check for a Username
	if (document.frmLogin.name.value==""){
		errorMsg += "\n\t<% = strTxtErrorUsername %>"; 	
	}
	
	//Check for a Password
	if (document.frmLogin.password.value==""){
		errorMsg += "\n\t<% = strTxtErrorPassword %>";
	}
	
	//If there is aproblem with the form then display an error
	if (errorMsg != ""){
		msg = "<% = strTxtErrorDisplayLine %>\n\n";
		msg += "<% = strTxtErrorDisplayLine1 %>\n";
		msg += "<% = strTxtErrorDisplayLine2 %>\n";
		msg += "<% = strTxtErrorDisplayLine %>\n\n";
		msg += "<% = strTxtErrorDisplayLine3 %>\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}

			openWindow("results.asp","ie1", "toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=200,height=100");
	return true;
}
</script>

<form onSubmit="return CheckForm();" target="ie1">
<input type="text">
<input type="image" border="0" name="enviar" SRC="ver.gif">
</form>
Creo q con eso t sirve...
La funcion openWindow abre el popup, la CheckForm revisa textfield del form para validar, el boton de submit que usé es una imagen... etc...

asp no tiene nada q ver en esto, solo que el popup va a mostar tupagina.asp con los resultados