Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with scheduling downloads  RSS feed

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,

I kept a dowload hyperlink in a jsp page.When i click on the download link,it should give me two options-Download Now and Download Later.When i click on Download Now,the file should be saved to disk.If i click on Download Later,a dialog box should be displayed prompting user to enter time in seconds.When the user clicks ok,the download should start after the specified time.Can anyone help me out how to do this?

Thanx in advance,
Regards,
Visu N
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think for downloading right away, there is not problem. But for downloading after a specific time, you can put a kind of counter in javascript and after the counter reaches to the specified time, request the server for the specified resource to be downloaded.
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the user clicks ok,the download should start after the specified time.

What happy if the user leave that page?
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by visu Nekk:
I kept a dowload hyperlink in a jsp page.When i click on the download link,it should give me two options-Download Now and Download Later.When i click on Download Now,the file should be saved to disk.If i click on Download Later,a dialog box should be displayed prompting user to enter time in seconds.When the user clicks ok,the download should start after the specified time.Can anyone help me out how to do this?



The best solution for this would a download manager application at the client end.
[ February 06, 2006: Message edited by: Adeel Ansari ]
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!