A
aatcbbtccctc
Hi folks
I've googled for an answer to this, with no success. Can someone please
jump in, and put me out of my misery! (I'm sure it's quite simple)
I have an invisible IFRAME, and a visible DIV:
<IFRAME id=myframe style="display:none" src="..."
onload="ShowNews(this)"></IFRAME>
<DIV id=mydiv></DIV>
I need to copy the content from the IFRAME, into the DIV. Everything
comes from the same domain, so there are definitely not any
cross-domain security issues.
This works fine in IE6:
function ShowNews(x) {
document.all.mydiv.innerHTML =
x.contentWindow.document.body.outerHTML
}
but in Firefox 1.5 it fails with the error,
"x.contentWindow.document.body has no properties".
I've tried various changes, with no success.
How can I recode that statement, so it works in either browser?
TIA,
TC (MVP MSAccess)
http://tc2.atspace.com
I've googled for an answer to this, with no success. Can someone please
jump in, and put me out of my misery! (I'm sure it's quite simple)
I have an invisible IFRAME, and a visible DIV:
<IFRAME id=myframe style="display:none" src="..."
onload="ShowNews(this)"></IFRAME>
<DIV id=mydiv></DIV>
I need to copy the content from the IFRAME, into the DIV. Everything
comes from the same domain, so there are definitely not any
cross-domain security issues.
This works fine in IE6:
function ShowNews(x) {
document.all.mydiv.innerHTML =
x.contentWindow.document.body.outerHTML
}
but in Firefox 1.5 it fails with the error,
"x.contentWindow.document.body has no properties".
I've tried various changes, with no success.
How can I recode that statement, so it works in either browser?
TIA,
TC (MVP MSAccess)
http://tc2.atspace.com