L
Logos
I'm having trouble with this in IE; annoyingly it works beautifully in
FF. My keywords are not specific enough to narrow my search to useful
entries on google, way too many hits, so here I am again.
What I want is to take an element from an inline frame and transfer it
to the parent for insertion into the parent document for display. This
works just fine in FF, but of course craps out in IE. Does anyone know
if there is a way to do this?
Code in parent:
function appendMe(node) {
node.style.background='red';
var here =document.getElementById("divInfoBar");
here.appendChild(node);
}
Code in iframe, launched via onload:
function fuggoff() {
var bugger =document.getElementById("test");
parent.appendMe(bugger);
}
Demo at http://65.110.86.247/Product_List3.asp. It is supposed to pass
a DIV out of the iframe, turn the background red (that works fine) and
then append it to the parent's DOM (which should automatically decouple
it from the iframe's DOM). The IE error message is "Error: invalid
argument" for here.appendChild(node).
Tyler
FF. My keywords are not specific enough to narrow my search to useful
entries on google, way too many hits, so here I am again.
What I want is to take an element from an inline frame and transfer it
to the parent for insertion into the parent document for display. This
works just fine in FF, but of course craps out in IE. Does anyone know
if there is a way to do this?
Code in parent:
function appendMe(node) {
node.style.background='red';
var here =document.getElementById("divInfoBar");
here.appendChild(node);
}
Code in iframe, launched via onload:
function fuggoff() {
var bugger =document.getElementById("test");
parent.appendMe(bugger);
}
Demo at http://65.110.86.247/Product_List3.asp. It is supposed to pass
a DIV out of the iframe, turn the background red (that works fine) and
then append it to the parent's DOM (which should automatically decouple
it from the iframe's DOM). The IE error message is "Error: invalid
argument" for here.appendChild(node).
Tyler