I'm working with a fairly common pattern - a page opens a child window (a popup) where a form permits the user to edit information (create new User Account). The controller validates the popup's submission and either tosses error messages or commits the update. If the update _is committed the user has no further need for the popup.
I need to add code to the controller that 1) fires a javascript function on the popup (self.close();) and 2) returns a value to the parent window. (user was created...the new user's ID = foo)