Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/09/2008, 10:50
Avatar de EPROM
EPROM
 
Fecha de Ingreso: abril-2005
Mensajes: 51
Antigüedad: 19 años, 1 mes
Puntos: 3
Respuesta: No me funciona pasar valores entre ventanas

La verdad no entendí mucho lo que estas tratando de hacer, pero para pasar datos del pop-up al padre es algo así:

Ventana principal:
Código:
<html>
<head></head>
<body>
<form name="frm" id="frm">
<input type=text id="GtoFecha" name="GtoFecha"><br>
</form>
<a href="#" title="" onClick="window.open('003.html')" width="400" height="200">Gastos</a>
</body>
</html>
003.html:
Código:
<html>
<head>
<title></title>
</head>
<body>


<form id="myform" name="myform" action="" method="post">
<div id="bloque" style="float:left; width:80px; ">
<input type=text class=input1 name="GtoFecha" value="">
</div>
</form>

<a href="javascript:volver();" title="pasar valor">Regresar a la Ventana Principal</a>

</body>

<script>
function volver() {
opener.document.frm.GtoFecha.value = document.myform.GtoFecha.value;
window.close();
}
</script>

</html>
Espero te sirva!