Re: Transfer javascript code from iFrame to a DIV
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Sat, 29 Apr 2006 01:48:51 +0200
sameergn@xxxxxxxxx wrote:
I have HTML form whose target is an invisible IFrame. After the IFrame
is loaded completely, following code transfers contents of IFrame to DIV
document.getElementById("mainDiv").innerHTML =
test_iframe.document.body.innerHTML;
<URL:http://pointedears.de/scripts/test/whatami#inference>
but this does not seem to carry over the Javascript code from IFrame to
DIV. Can anyone comment if this is the correct behavior or a bug?
`innerHTML' is a proprietary feature, so everything regarding it can be
considered correct behavior, even bugs.
(The requirement is to submit a form and update only portion of screen,
without using AJAX. A DIV cannot be target of the FORM, hence the
IFrame->DIV route)
This is utter nonsense. Simply make the IFrame visible in the first
place, and use CSS to style it.
PointedEars
--
A man who works with his hands is a laborer; a man who works with his
hands and his brain is a craftsman; but a man who works with his hands
and his brain and his heart is an artist.
-- Louis Nizer, lawyer (1902-1994)
.
- References:
- Transfer javascript code from iFrame to a DIV
- From: sameergn
- Transfer javascript code from iFrame to a DIV
- Prev by Date: Re: getting and setting scroll-y position
- Next by Date: Re: Problem with window.open
- Previous by thread: Transfer javascript code from iFrame to a DIV
- Next by thread: Re: Transfer javascript code from iFrame to a DIV
- Index(es):
Relevant Pages
|