Solved

URGENT! Access parent fields from modal dialog

Posted on 2004-08-03
2
310 Views
Last Modified: 2008-02-01
Hi,

I have a modal dialog containing an iframe containing a page.

From the page that is within the iframe that is within the dialog I want to reference / set fields on the window that opened the dialog.

I normally use

opener.document.all.frmFieldName.value = myValue;

but this doesn't work, is there a complication with dialog's or the fact that the dialog contains an iframe.
0
Comment
Question by:Plucka
2 Comments
 
LVL 2

Accepted Solution

by:
Michael_Cicogna earned 500 total points
ID: 11712793
Hi

I think there is no other way then  passing the opener window as dialogparameter.

window.showModalDialog("modalurl.html", window);

and in your popup the field window.dialogArguments contains your opener window

Michael
0
 
LVL 18

Author Comment

by:Plucka
ID: 11712872
That is brilliant! I tried everything, but this worked perfectly first time.

Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now