470,600 Members | 1,489 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

IFRAME question

I have a page (page A) that has an IFRAME in it. The IFRAME opens a
page (Page B)that has checkboxes in it. When I click on a box in page
B , it has an onclick that needs to run a function in Page A. I have
been trying window.opener.function() with not luck. Any ideas?

Dave
Jul 20 '05 #1
2 1792
df********@hotmail.com (helixpoint) writes:
I have a page (page A) that has an IFRAME in it. The IFRAME opens a
page (Page B)that has checkboxes in it. When I click on a box in page
B , it has an onclick that needs to run a function in Page A. I have
been trying window.opener.function() with not luck. Any ideas?


I guess that the function isn't called "function" (a keyword).

You have *three* pages:
the outer one, A
a page in the iframe, you don't name this
and the page in the openend window, B

To go from B to A, the path is:
window.opener.parent.functionName()
^itself ^iframe ^outer

You can read more here:
<URL:http://www.infimum.dk/HTML/JSwindows.html#ref_2_6>

/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
That did not work. Maybe I should go deeper with the facts. Page A was
opened by showModalDialog

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Alexandre Jaquet | last post: by
6 posts views Thread by SF RVN | last post: by
7 posts views Thread by Patrick.O.Ige | last post: by
7 posts views Thread by ukrbend | last post: by
21 posts views Thread by javainfo | last post: by
reply views Thread by mem | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.