jQuery how to trigger event after form post returns?
I have an expensive form action that builds a zip file on the server and returns it to the browser. <form action='/download' method='post'> <input type='submit' value='download'/> </form> I want to block the page on click of the button so that the user doesn't repeatably hit the button. However I want to unblock the page after the form returns. How can trigger an event on successful completion of the form? (I know I can trigger this by changing the form to be an ajax submission but then the save file dialog does not appear...) Any suggestions? Thanks One way you could handle this without using