Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi People! I have a parent windo

Status
Not open for further replies.

flac0

Programmer
Oct 31, 2001
22
UY
Hi People!

I have a parent window that opens a child. From the child i want to access to the value of a textbox in a frame in the opener window. The textbox (Level) exists on a frame called "Menu" on the parent window. I cant seem to reference to the frame correctly, heres what I have so far:

window.opener.parent.top.frames["Menu"].Level.value

What I´m doing wrong? :(

It´s posible that window.opener doesn´t work in IE 6?

Thanks in advance ;)


My keyboard are on-fire baby! ;)
 
instead of getting it after you load up the child screen, you can feed it from the parent window to the child window.

Check this ref for modal dialog:-
Thread216-495605
 
I know that window.opener works in IE 6 - I use it all the time.

I am wondering why you have both parent and top in your definition. Wouldn't this work?
Code:
window.opener.parent.frame['Menu'].Level.value
Also, I try to avoid double-quotes in JavaScript code. Unless it is defining a string. That may just be an Einstein-ism. Good luck.

Einstein47
("Vision without action is a daydream - Action without vision is a nightmare. Japanese Proverb")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top