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!

Javascript opener statement

Status
Not open for further replies.

janedane

Programmer
Mar 8, 2004
22
IE
I am writing a small menu program for a restaurant. I have a parent window with a list of menu items on it which when selected fill a selection list on the same page. This works fine so when I select a menu item from the list, it then appears in the selection list. The problem I am having is that I also have an option to open a popup window with a refined list of menu items. When the user selects from the popup list, I also want this information to be populated in the selection list on the opener page. Unfortunately I cant seem to get this piece of code working and was wondering if anyone has ever successfully done this.

PS - I can populate a text fill in from the popup window (on the parent page) but cant seem to add to my selection list.

Thanks!
 
Here is a example.

Popup Page: This window is opened by the Main Page.
Code:
window.opener.this_form.sel_value = "1";

Main Page: This is the form that gets populated by the Popup Page data.
Code:
<form name="this_form">

<select name="sel_value">
	<option value="">Select One</option>
	<option value="1">Test 1</option>
</select>

</form>

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top