File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Popup - File Download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Popup - File Download" Watch "Popup - File Download" New topic
Author

Popup - File Download

Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
Hi,

Thanks in advance...

I have a jsp which uses window.open() method to open a PDF / Zip file.

window.open(escape(pageName),"Invoice","location=right,menubar=no,resizable=no,titlebar=no,width="+screen.width+",
status=no,toolbar=no,height="+screen.height+",left=0,scrollbars=yes,top=0");

My requirement is to capture the action performed by the user in case of PDF and Zip files. i.e whether the user opened or saved the PDF document / ZIP file.

In case of PDF, the document gets opened in a new popup window automatically. The new popup window has save image / option in the default browser toolbar to save this document. Can we capture this action?

If we cannot capture the save action in above scenario, can we do the following?

When the user clicks on link provided for PDF, Can we popup our own dialog box with open, save and cancel buttons so that we can capture the action performed by the user?

In case of Zip file, a browser popup with open, save, cancel buttons. Can we capture the action performed by the user in a browser popup?

If we cannot capture, can we disable this default browser popup and write our own dialog box?

Please suggest me the solution for this...

Thanks,
Susmitha.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is nothing you can do that tracks what the user does. Requirement is impossible to do.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Popup - File Download