Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function () {
- var $pleaseWaitDialog= $("#pleaseWaitDialog");
- $(document).on("submit", "#back", function (e) {
- $pleaseWaitDialog.dialog({ modal: true });
- $.fileDownload($(this).prop('action'), {
- httpMethod: 'POST',
- data: $(this).serialize,
- successCallback: function (url) {
- $pleaseWaitDialog.dialog('close');
- },
- failCallback: function (responseHtml, url) {
- $pleaseWaitDialog.dialog('close');
- }
- });
- e.preventDefault; //otherwise normal form submit will occur
- });
- });
- </script>
Add Comment
Please, Sign In to add comment