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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving values from one window to another

Status
Not open for further replies.

dBjason

Programmer
Mar 25, 2005
355
US
I have a child window (aspx page) opened from the parent application (using window.open). The child window has some controls, and a textbox. When the user is finished, s/he clicks a button and the following code takes the value from the child window's textbox and populates the parent, like so:

window.opener.document.form1.InputContainer$LetterInput$txtReasons.value = txtVal;

This works great for the textbox I have on the parent page. But now, I need to populate a listbox on the parent and am not having much luck. I've tried these two methods but to no avail:

o.text = txtVal;
o.value = "1";
window.opener.document.form1.InputContainer$LetterInput$lstReasons.add(o);

window.opener.document.form1.InputContainer$LetterInput$lstReasons.add("Text", "Value");

I get "htmlfile: No such interface supported" with both.

Anybody have any ideas? If I've posted in the wrong place please let me know so I can move it to a different forum.

Thanks,

Jason
 
...Wish there was a way to delete my post :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top