I have a Jquery function that transfers files from one location to another. Sometimes due to the size of the file, the function takes a long time and I have no way of telling the user that it is still working. How do I put something on the screen until the function finishes so that the user knows that the system is still working and won't refresh or close the page?
function transferfile(sourceurl, desturl)
{
//do the transfer
}
$.when( transferfile() ).done(function() {
alert("completed");
});