• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make sure the open/save dialog opens a new application instance ?

 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Natasza Biecek
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tina,
(...)new instance should be launched and used.

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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
Tina
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic