Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/07/2008, 23:19
littman
 
Fecha de Ingreso: julio-2008
Mensajes: 1
Antigüedad: 15 años, 10 meses
Puntos: 0
window.open no funciona dice permiso denegADO

Necesito comunicar dos paginas html utilizo esto:
EN padre.html aqui activo ala hija
<SCRIPT>
var sWinGred;
function abreVentana(){
var mipage ="http://c-gmdsa-1145/siggaudi/hija.htm";
var nombre = "Gred";
winprops = "height="+400+",width="+650+",scrollbars=yes, resizable"
window.parent.sWinGred = window.open(mipage, nombre, winprops);
}
function enviaDatoA_HIja(){
var datoGaS;
datoGaS= document.formG.dato1.value;
sWinGred.parent.hija.f_EnviaGAS(datoGaS); //DICE AQUI ERROR
alert(datoGaS);
}
</SCRIPT>

EN hija.htm

<SCRIPT>
function jsf_EnviaGAS(datoGaS){
document.formM.salT.value=datoGaS ;
}
</SCRIPT>
Por que ho se logra activar la funcion jsf_EnviaGAS(datoGaS) que invoco desde padre.jtml.