Solved

URGENT! Access parent fields from modal dialog

Posted on 2004-08-03
2
315 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

679 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