PDA

View Full Version : Pop over Parent from iframe, feed data from Popup back to iframe



cclambie
12-05-2007, 10:38 AM
1) Script Title:
DHTML Window Widget

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
Thanks for the Widget first off, it is great.
Similar to Thread=26235

I more want to clarify something, so as to go down the correct path.

I have a page that calls a Iframe Window, which then uses
window.parent.Frmcheckall.txtRateID.value = varRateID;
to update its parent form element.

My issue is that I have now put this parent window into an Iframe, and the Pop-up appears within the Iframe, instead of above the parent, where I was hoping to have it appear.

I was thinking I will have to do the following to make it work:
Call
Parent.openJavaFun()
Then from the Pop-up
Send the variable back to the Iframe, somehow?

This is where I get lost amongst as a JS newby.

I was thinking
window.parent.iframe_myIframe.myFrm.MyElement.value = var

Your comments would be appreciated.