can i specify an inner frame as a form target...in a popup?
Posted on 2003-02-25
A webpage i'm developing uses a standard form that interacts with a servlet. The form has several submit buttons, each of which flags a different command (for good reasons, i can't split the form).
One of the form actions triggers the servlet to stream an excel file to the requesting page...the page content type is reset to application/excel.
As a result, i want to open an html page with a frame or iframe, and specify the FRAME as the target for the form post action. Referencing a frame or iframe withing an external page is easy (windowObj.frames.myFrameId), but i have no idea how to hit a submit button on a source page, and stream the results into a frame on an external page.
The TARGET attribute of the form object can't be pointed to a frame reference, because it's a string. I'm beginning to believe this is impossible without using a forwarding agent of some kind.