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(td1, attributes);
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(td1, attributes);
td1.innerHTML = " ";
var td2 = document.createElement("td");
var attributes = new Array (
{attributeName:"width", attributeValue:"400"}
);
LIB_DHTML.setDynamicAttributes(td2, attributes);
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(td2, attributes);
td2.innerHTML = downloadClaim;
alert("POR AQUI PASA");
newRow.appendChild(td1);
alert("POR AQUI YA NO PASA");
newRow.appendChild(td2);
}
En firefox, funciona a la perfección...
Porfavor, si alguien puede ayudarme se lo agradecería.
Gracais a todos los que me leais