On 6/29/05, Kołoszko Paweł <[EMAIL PROTECTED]> wrote: > I have page B opened from page A. I insert some data on page B and submit > the form. Then action is performed which generates Word document. After that > it returns to page A. The problem is: how to open page A and then download > automatically generated document? I know how to open page A, I know how to > download generated document, but I do not know how to open page A AND > download document after pressing submit button on page B. I tried many > things and none of them works. Do you have any ideas?
I could be wrong, but aren't you only allowed one response for an html request? So you can either return a new page, or you can return a document to download (really, just another page), but you can't return both at the same time. Maybe you could get around it with javascript and the target="_blank" link attribute, though.

