I am creating a simple website which allows user to download some files from the server side. Those file will not be created up front. That is, there will be a button on the html page. When user click that button, the page will ask server to grab those file from another server and zip it to user.
Currently I am using jquery. I created a popup dialog form which has a download button:
$("#dialog-form").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Download": function() {},
close: function() {}
}
});
When user click the download button, user need to wait for server to generate the file (that is, a blocking call).
I am very new to web development. Can anyone help me out here?
Thanks!
If you just want to give a file you can simply give location of file in download button like
If you want to give zip format than you need to use some sever side plugin to convert it into zip.