Use cookie technique to re-enable submit button once the download response has been received by the browser (see http://stackoverflow.com/questions/3055138/can-you-use-javascript-to-detect-a-file-download-window-created-server-side).