Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/08/2003, 11:56
Avatar de Ugho
Ugho
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago, Chile
Mensajes: 487
Antigüedad: 21 años, 6 meses
Puntos: 0
Estimados caricatos tengo:
------------------------------------------------------------------
Una ventana madre: madre.html
<html>
<head><title>madre</title>
</head>
<body>
<form name="formmadre" method="xxxxx" action="ttttt">
<select name="selector">
<options value="cero">cero</optios>
<options value="uno">uno</options>
</select>
<input name="botonmadre" value="abrir" onclick="window.open('hija.html','ventana','width= 300,height=300')">
</form>
</body>
</html>
--------------------------------------------------------------------
Una ventana hija:hija.html
<html>
<head><title>madre</title>
<script language="javascript">
function enviar()
{
texto=document.formhija.textito.value;
valor='1';
selOpcion=new Option(texto, valor);
eval(opener.document.formmadre.selector.options[0]=selOpcion);
}
</script>
</head>
<body>
<form name="formhija" method="wwww" action="zzzz">
<input type="text" name="textito">
<input type="button" name="botoncito" value="envialo" onclick="enviar()">
</form>
</body>
</html>
------------------------------------------------------------------------
Lo que necesito es enviar el texto ingresado en la ventana hija y agregarlo en el select de la ventana madre.
Como lo puedo hacer?
Ya intente quitar el EVAL pero nada....?????
__________________
________________________________________

Ugho.