Double Click 방지 태그

<htmlb:form>

<xhtmlb:protectDoubleSubmit timer = “1”

                                  title   = “Loading” />

~~

위 태그를 추가하면, 파일 첨부 및 다운로드 시 팝업창이 종료되지 않는 문제가 발생함.

–> 해결방법은 Event 수행 시, 아래 스크립트를 실행해줘야 함.

  function wait_timeout() {
    window.setTimeout(‘showProtectDoubleSubmitWindow(false)’, 600);  <%– 1초 –%>
    window.setTimeout(‘showProtectActive = null’, 610);
  }

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments