Is it possible to set a target window when submitting a form? In the standalone/desktop reader, submitting a form expects a response back into the reader, but when opening a URL, it'll open in a new tab of the default browser. In the browser reader seems to accept a response back into form if given, or will go to the page it submits if a text/html response is given. Opening a URL in the browser however will overwrite the PDFs browser with the new URL. Is there some way to treat it like a link in HTML using a target parameter like target="_blank"? Nothing in the API reference has indicated as such, but surely Adobe hasn't left something like this out?
But there is something you can do. Return FDF data that contains a single line of JavaScript. The "app.launchURL" function has a parameter for opening an URL in a new Page. I haven't tested this out in all situations, but it should work.
I think there are some other ideas/opinions on this exact point on this forum and the Adobe User to User forum.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script