Skip to content

Instantly share code, notes, and snippets.

@jeedy
Created October 14, 2019 06:17
Show Gist options
  • Save jeedy/60f489d913907652af18ff6ec78c0084 to your computer and use it in GitHub Desktop.
Save jeedy/60f489d913907652af18ff6ec78c0084 to your computer and use it in GitHub Desktop.
Form 을 이용한 파일 다운로드 submit Events control (with jquery)
/*
* 엑셀 다운로드시 로딩이미지 노출
*/
$('#frmDownlaod').submit(function(){
startLoading(); // 로딩중 이미지 노출
$.post($(this).attr('action'), $(this).serialize(), function(response) {
endLoading(); // 로딩중 이미지 비노출
}, 'text');
return true;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment