469,579 Members | 1,123 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

Returning value from an iframe

Hello to all,

Perhaps this is trivial, but i am very novice ...

I have a main window with a form, from here i can open a popup window
from where select elements from a table. This table is inside a iframe
in this child window.

How could I reference the elements in the main form inside the iframe
code? Who is the parent/opener of the iframe?

If i have not explained in a cleary way, please let me know ...

Thanks in advance!

Jul 20 '05 #1
2 5777
Nuck <nu**@nowhere.com> writes:
I have a main window with a form, from here i can open a popup window
from where select elements from
form?
a table.
This sentence no verb! :)
This table is inside a iframe
in this child window.

How could I reference the elements in the main form inside the iframe
code?
parent.opener.forms['formName'].elements
Who is the parent/opener of the iframe?
The parent of an iframe is the page it is embedded in. It is not a
window, so it has no opener.

You can read more here:
<URL:http://www.infimum.dk/HTML/JSwindows.html#ref_2_6>
If i have not explained in a cleary way, please let me know ...


The questions were clear. The description was a little typo'ed.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
VK
by the complicity of the solution I assume you are trying to get info
from a 3rd part. If so, you cannot do it 'cause of security restrictions
(like get a stock quote from NASDAQ and place it on your page w/o
"boring" ad).
If I'm miserably wrong and all happens under your domain, then the call
from iframe to the opener's function would be
self.parent.opener.functionName()
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by HolaGoogle | last post: by
1 post views Thread by Deidre | last post: by
3 posts views Thread by hendedav | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.