By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

IFRAME question

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.