Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
04-27-2006, 08:39 PM #1
- Join Date
- Sep 2003
- Thanked 0 Times in 0 Posts
Pass query variable from child to parent window
I have an "Add Events" parent window -- a form with many fields. One of the fields is a drop-down list for Event Location. Next to the list is a button for "Add Location." This opens a child window which allows for a new location to be added to the list. Once it's added, a Return button sends the user back to the Add Events parent window.
All of this works great -- the child window closes, and the parent window refreshes with the new location added to the list.
But I'd like to put a finishing touch on it -- if the person has added a new location, logically that location should be selected in the Add Events form when the person returns to it.
My "Add Location" child window includes a query that gets the Id and Name of the location the person added. But
(a) how do I pass that information to the parent window?
(b) how do I use that information to change my drop-down list so the new location is highlighted?
How do I specify the select list and the new item to be selected?