Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/10/2010, 05:24
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Enviar datos de ventana hija a padre con window.opener no funciona en Fire

inténtalo ahora
padre
Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.  
  3.     function BuscarClave()
  4.     {
  5.         xpos=(screen.width/2)-200;
  6.         ypos=(screen.height/2)-215;
  7.         window.open('BuscarClave.asp','popup','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=500, height=350, left='+ xpos+', top='+ ypos);
  8.     }
  9.  
  10. </script>
  11. </head>
  12. <body>
  13. <form name="frmAlta" method="post">
  14. <input type="text" name="txtClave" id="txtClave"/>&nbsp;&nbsp;
  15. <input type="button" value="Buscar Clave" onClick="BuscarClave();"/>
  16. </form>
hija
Cita:
<form name="frmClave" method="post">
<input type="text" name="hdnClave" value="12345"/>
<a href="#" target="popup" onClick="window.opener.document.frmAlta.txtClave.v alue = window.document.frmClave.hdnClave.value;window.close();"> Agregar Clave</a>
</form>
lo que te he marcado en rojo, sobra. también te he quitado javascript al invocar a la función, no es necesario