Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/09/2003, 09:10
jcantomarin
 
Fecha de Ingreso: agosto-2003
Ubicación: Cancun
Mensajes: 97
Antigüedad: 21 años, 6 meses
Puntos: 0
Al cerrar un Pop up que se ejecute un submit

hole, tengo entre <head> </head> el siguiente código:

-----------------------------------------------------------------------------
<script language=javascript>
function recibir(a, b)
{
document.forms.hoteles.zona.value = a;
document.forms.hoteles.tarifa.value = b;
ventana.close();
ventana = false;
}
var ventana = false;
function abrir()
{
var popup = "<html><head><title>CRITERIOS DE FILTRADO</title></head><body bgcolor=lavender>";
popup += "<form name=enviar action='javascript: ";
popup += "opener.recibir(enviar.a.value, enviar.b.value)' >";
popup += "<div align=center>";
popup += "<font face=arial size=1 color=#000080>ZONA &nbsp;";
popup += "<input type=text name=a size=5 maxlength=3 style='background: white;border:1px solid blue;color:red;font-weight:normal;font-size:8pt'>&nbsp;&nbsp;"
popup += "<font face=arial size=1 color=#000080>TIPO TARIFA &nbsp;";
popup += "<input type=text name=b size=5 maxlength=3 style='background: white;border:1px solid blue;color:red;font-weight:normal;font-size:8pt'>"
popup += "<hr>"
popup += "<input type=submit></form></body></html>";
popup += "</div>";
ventana = window.open('popup','','width=500,height=200,left= 150,top=150');
ventana.document.writeln(popup);
ventana.document.close();
}
</script>
---------------------------------------------------------------------

y entre <body></body>
un formulario llamado hoteles con dos inputs y un submit

----------------------------------------------------------------------

y quiero que después de cierrar el popup se ejecute el submit
como le hago, porque le he agregado a la función recibir en su ultima línea el código: document.forms.hoteles.submit();
pero me marca error

Última edición por KarlanKas; 15/09/2003 a las 01:44