Transfer javascript code from iFrame to a DIV
- From: sameergn@xxxxxxxxx
- Date: 28 Apr 2006 12:52:51 -0700
Hi,
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;
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?
(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)
Thanks,
Sameer
.
- Follow-Ups:
- Re: Transfer javascript code from iFrame to a DIV
- From: bobzimuta
- Re: Transfer javascript code from iFrame to a DIV
- From: Thomas 'PointedEars' Lahn
- Re: Transfer javascript code from iFrame to a DIV
- Prev by Date: Re: FAQ Posting problem
- Next by Date: Cookie problem! Getting error when passing the expire date.
- Previous by thread: Replace all values in a Listbox
- Next by thread: Re: Transfer javascript code from iFrame to a DIV
- Index(es):
Relevant Pages
|