So I’ve got this bit of code, that I need to fire from a child window (thinking: opener.document… ?).
![]()
What I’ve got:
- A parent window that has two lists: schools/teams and players.
- When you select a school/team from the first dropdown, the second select box populates with available players (a bit of AJAX).
- Changing schools/teams changes the list in the dropdown.
- I have a popup window that allows a user to change the selected school/teams roster.
What I need:
- When the selected school/teams roster is updated from the popup, the parent window should reload the select list of players.
- I have a function updatePlayerBox() that updates the roster list on the parent page based on the selected school/team ID from the first dropdown.
- Can I fire the javascript from the child window, affecting the parent?
UPDATE: I have solved this issue (thanks to people at #javascript in irc)! The solution is to use “opener.function(variable);” which forces the parent to run the chosen function. Simple solution!




Categories