Forums
This topic is locked
HOW TO RELOAD A LIST BOX FROM A POPUP WINDOW
Posted 03 Jun 2003 16:02:14
1
has voted
03 Jun 2003 16:02:14 Frank Munoz posted:
I know that when you close a popup window you can use the "opener.location.reload()" javascript on Onload to refresh the entire main window, but what would the function be to just reload a specific ListBox field only as opposed to reloading the entire opener page?I've tried "opener.location.form1.ManufacturerID.reload()" but can't seem to get it to work...what am I missing or not declaring?
Replies
Replied 04 Jun 2003 15:12:22
04 Jun 2003 15:12:22 Vince Baker replied:
What I have done in the past is to open a popup with the list. Let the user select from the list and then send the value back to a hidden or text field on the opening page. THis will then be inserted into the table.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 05 Jun 2003 07:32:34
05 Jun 2003 07:32:34 Frank Munoz replied:
Thanks bakerv.
What I'm trying to do is on the insert form I have a drop down menu called "Manufacturer". If a product is being inserted and the "Manufacturer" for that product doesn't exist among the list, then upon clicking on the "Add" button for the "Manufacturer" opens a little popup window that has a small form to create the new "Manufacturer", upon creating it and inserting on the same popup window, I'd like to requery or reload the "Manufacturer" drop down menu ONLY, as opposed to reloading the entire Main Window to show the newly created manufacturer.
I don't see how your method would work for refreshing newly created records on a drop-down menu from a popup window, but I hope my detailed concept helps to understand.
What do you think? If we can reload the main window, I'm sure there is a syntax to reload a single field or object.
What I'm trying to do is on the insert form I have a drop down menu called "Manufacturer". If a product is being inserted and the "Manufacturer" for that product doesn't exist among the list, then upon clicking on the "Add" button for the "Manufacturer" opens a little popup window that has a small form to create the new "Manufacturer", upon creating it and inserting on the same popup window, I'd like to requery or reload the "Manufacturer" drop down menu ONLY, as opposed to reloading the entire Main Window to show the newly created manufacturer.
I don't see how your method would work for refreshing newly created records on a drop-down menu from a popup window, but I hope my detailed concept helps to understand.
What do you think? If we can reload the main window, I'm sure there is a syntax to reload a single field or object.