I have a popup window containing a form which gathers data for a report. When I click submit in that window, I want it to close the popup, and open the report in the original window that called the popup.
I think I can open the report in the correct window by using { :target => } in the form_tag, but I don't know how to determine or set the name of the originating window.
I also don't know how to close the popup window.