This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Alert after completion of download. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Alert after completion of download." Watch "Alert after completion of download." New topic

Alert after completion of download.

V. Aggarwal

Joined: Jun 07, 2006
Posts: 4
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.)

V. Aggarwal<br />SCJP, SCWCD
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
JavaScript has no control over the download. It does not know if it was downloaded or not so you are out of luck.

I agree. Here's the link:
subject: Alert after completion of download.
jQuery in Action, 3rd edition