IFRAME question

H

helixpoint

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
 
L

Lasse Reichstein Nielsen

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
 
D

dddd dddd

That did not work. Maybe I should go deeper with the facts. Page A was
opened by showModalDialog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top