What is the better way to handle multiple download that show progressbar

Need help please,…I have list of images display in a form,each of these has a button “download”,…now when a user clicks one of the download button, it calls my function and inside my function is jqeury.ajax that wraps by setInterval.

setInterval(function(){
$.ajax({
     url:..,
     ....
     success:function(data){
         //do some update in progress bar here...
    }


});
},5000);

I don’t know if this is the correct way to handle this kind of multiple downloads.I hope someone can give me some idea or help me on this.

Thank you in advance.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.