This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
We have implemented download on link click that gives the standard Open/Save dialog. Now what we want is if user clicks open, a new application instance should be launched.
Like - if the acrobat reader is alreay opened,the download link is clicked, a new instance should be launched and used. Is it possible?
Regards, Tina
Alongwith being a good coder, try to be a good professional as well!
hmm...as I understand a new instance of Acrobat Reader?
so, try to prepare a link to your doc in this way: <a href="any_doc.pdf" target="_blank">a document</a> it will open a new instance of browser window (with AR inside) on every click...
regards, Natasza
Tina Desai
Ranch Hand
Joined: Mar 13, 2003
Posts: 365
posted
0
Thank you for your response.
I am giving the content-disposition as the following: response.setHeader("Content-Disposition", "attachment; filename="+strFileName);
This means, I am prompting the user for open/save dialog. On this open, I want to launch a new Acrobat instance and not use the existing one.
I do not have and want the following:
This will open the document inline i.e in the browser window as you were suggesting.
That's outside of the realm of HTTP and HTML, and up to the operating system. E.g., on Mac OS X, you'll never get a second instance if one is running already.
Why does it matter whether a new app instance is opened?
Hi Tina, I am having the same problem as the one you have implemented. I want to get the pdf from the database and display it in the browser on clicking the link. Can you please send me that code that prompts the user for the open/save dialog. If it involves some handling in the action please explain that also..
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to make sure the open/save dialog opens a new application instance ?