Foros del Web » Programando para Internet » Javascript »

IE: problema con opener + appendchild

Estas en el tema de IE: problema con opener + appendchild en el foro de Javascript en Foros del Web. Buenas tardes a tod@s. Tengo un problema de los mios... bastante RARO RARO RARO!!!! Os cuento: Tengo un PHP, que lanza un popup. Desde ese ...
  #1 (permalink)  
Antiguo 17/09/2006, 09:12
Avatar de el_javi  
Fecha de Ingreso: marzo-2005
Ubicación: MAdrid
Mensajes: 844
Antigüedad: 19 años, 1 mes
Puntos: 10
IE: problema con opener + appendchild

Buenas tardes a tod@s.

Tengo un problema de los mios... bastante RARO RARO RARO!!!!

Os cuento:

Tengo un PHP, que lanza un popup.

Desde ese popup, se seleccionan un conjunto de items, que dinamicamente, tienen que ir aparecuiendo en la ventana padre.

Mi funcionamiento es que cada vez que selecciono uno de esos items.. hago llamada a una función que construye dinamicamente lineas (con td's) en la ventana padre.

El funcionamiento base de mi función es:
Código PHP:
var downloadsTable opener.document.getElementById("downloadsTable");
if (
downloadsTable)
{
    
downloadsTable.insertRow(downloadsTable.getElementsByTagName("tr").length);
    
    var 
newRow downloadsTable.getElementsByTagName("tr")[downloadsTable.getElementsByTagName("tr").length-1];
    
    
// Creating Objects
    
var td1 document.createElement("td");
    var 
attributes = new Array (
        {
attributeName:"width"attributeValue:"8"}
    );
    
LIB_DHTML.setDynamicAttributes(td1attributes);
    if (
LIB_navigator.getName() == "Microsoft Internet Explorer")
    {
        
attributes = new Array ({attributeName:"className"attributeValue:"sp"});
    }
    else
    {
        
attributes = new Array ({attributeName:"class"attributeValue:"sp"});
    }
    
LIB_DHTML.setDynamicAttributes(td1attributes);
    
td1.innerHTML " ";
    
    var 
td2 document.createElement("td");
    var 
attributes = new Array (
        {
attributeName:"width"attributeValue:"400"}
    );
    
LIB_DHTML.setDynamicAttributes(td2attributes);
    if (
LIB_navigator.getName() == "Microsoft Internet Explorer")
    {
        
attributes = new Array ({attributeName:"className"attributeValue:"a11_000000"});
    }
    else
    {
        
attributes = new Array ({attributeName:"class"attributeValue:"a11_000000"});
    }
    
LIB_DHTML.setDynamicAttributes(td2attributes);
    
td2.innerHTML downloadClaim;
    
    
alert("POR AQUI PASA");
    
newRow.appendChild(td1);
    
alert("POR AQUI YA NO PASA");
    
newRow.appendChild(td2);

Como se ve en mis dos alertas, por una pasa bien, pero cuando le digo q AÑADA en la ventana padre mi nueva línea, me da un error que es: "Interface no Compatible"

En firefox, funciona a la perfección...

Porfavor, si alguien puede ayudarme se lo agradecería.

Gracais a todos los que me leais

Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:13.