V. Aggarwal

Greenhorn
+ Follow
since Jun 07, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by V. Aggarwal

Please help me out in this problem.

I have a jsp which is having a link to static zip file on the server for download. If user clicks to that link download window(default one) will pop up and ask the user to save the file.
I need a javascript method which should give alert message after the file has been downloaded successfuly. (If somehow file has not been downloaded properly then no alert should come.)
Thanks Sivaraman,

This will realy help me if I am able to get the alert after the download is complete. I am not sure how to get the alert after the download is complete. Please explain me how to get the alert message.
15 years ago
Thansk Masoud

But I guess this will not solve my problem because the criteria for the successful download is not only the clicking of URL but I have to ensure that file has been successfuly saved on the user's system.
With the filter approach I can create the response object and can have a handle to control the user response of ('Save' Or 'Cancel') but when the data will be copied from response to user system and then user presed cancel button, I will not be having any handle at that time.
Make me correct if I am wrong
15 years ago
I have a Web application running on Apache - Tomcat Server.
With the link provided on the html page (rendered to the user by the server) user can download static file from the server. I want to count the number of times that file has downloaded successfuly.

File download unsuccessful scenarios.

File Download popup will open when user tries to download file with options as 'Open', 'Save' and 'Cancel'

Scenario 1. User may press 'Cancel' button.
Scenario 2. User pressed 'Save' but while save was going on user pressed cancel button i.e. user stoped the save process in between.

Please help me out how to solve this problem
15 years ago