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
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