Getting the parent of the base page that opens a ModelDialog

Hi;

I have this ModalDialog window. The opener page is inside an iframe. What i want to do is i want to reach the parent of the opener page of the dialog. You can reach the opener with window.dialogArguments. But you cannot use parent.window.dialogArguments.
To make things clear here is an example code. If i was using window.open instead of showModalDialog than my code would look like this.

function someFunction()
{
    valueIWantToGet = opener.parent.document.all.tags( "INPUT" )( "someField" ).value;
}

but since i am using a Modal Dialog the code has to be like this.

function someFunction()
{
    windowOpener = window.dialogArguments;
   //Here in the line above we get the opener window.No prob. so far.
 
    valueIWantToGet = windowOpener.parent.document.all.tags( "INPUT" )( "someField" ).value;
    //But when we try to get the parent of the opener window then the problems start
}


So if anybody knows the solution please share it with me. :) Thanks...
Goa_KoalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

superm401Commented:
I really don't think that's possible.
0
Goa_KoalaAuthor Commented:
No it's possible. I managed :))

when you are opening the modalDialog you open it like this

window.showModalDialog( 'urlOfTheWindow', window, 'parameters' );

you write window( without "" or '' ) in the middle, where you actually write the title of the window. after that

window.dialogArguments.top or window.dialogArguments.parent works just fine. :)
0
moduloCommented:
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.