본문 바로가기
반응형

분류 전체보기68

[Tip] 폼 서브밋 바인딩하여 발리데이트 시 아약스사용할 경우 참고사항 JS 를 다루면서 가끔가다 보면 잘 잊는 경우가 있어 메모해둘 겸 작성하는 Tip 을 전송하는데 있어서 내부의 요소에 대한 유효성 검사를 js로 검사할 경우 보통 submit 이벤트에 바인딩하여 유효성 검사를 진행한다. 그리고 요소 중 특정 요소의 경우에는 ajax 를 통해 유효성 검사를 하는 경우가 있는데, 이 때 ajax를 사용할 떄 일반적으로 비동기적으로 통신을 하는데, 비동기식으로 통신하여체크하게 될 경우에 문제가 있다. 바로 ajax통신 하고 있는데 폼은 전송하여 페이지가 넘어가버리는 경우! 이 경우에는 ajax를 동기식으로 통신하도록 설정하도록 하자. ex) jQuery $.ajax({ url : '', type : '', data : {}, dataType : '', async : false.. 2024. 1. 18.
[CI4] 카페24에 설치 해보기 1. CodeIgniter 4 Download 다운로드 링크 : Welcome to CodeIgniter Welcome to CodeIgniter CodeIgniter 3 is the legacy version of the framework, intended for use with PHP 5.6+. This version is in maintenance, receiving mostly just security updates, and the current version is 3.1.13. codeigniter.com 2. Codeigniter 4 FTP Upload 3. `env` 파일의 파일명을 `.env` 로 변경하기 단, 각 설정을 env 파일을 통해 하실 경우 변경하시면 됩니다. env파일을 사용하.. 2023. 12. 30.
[phpDocumentor]@todo 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.todo.pkg.html @todo @todo Document changes that will be made in the future Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 1.0+) @todo information string [unspecified format] DescriptionUse @todo to document planned changes to an element that have not been implem manual.phpdoc.org @todo 향후 발생할 변경 사항을 문서.. 2023. 12. 6.
[phpDocumentor]@version 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.version.pkg.html @version @version Version of current element Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 0.1+) @version versionstring [unspecified format] DescriptionDocuments the version of any element, including a page-level block NEW v1.2 - @version is now inhe manual.phpdoc.org @version 설명 페이지 .. 2023. 12. 6.
[phpDocumentor]@abstract 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.abstract.pkg.html @abstract @abstract Document an abstract class or method Gregory Beaver Chuck Burgess Copyright 2002, Gregory Beaver (phpDocumentor 1.1+) @abstract DescriptionUse the @abstract tag to declare a class as abstract, as well as for declaring what methods must be redefin manual.phpdoc.org @abstact phpDo.. 2023. 12. 6.
Javascript 함수 모음 1. onlyNumber(className) /** * 클래스 명 입력하여 지정가능 */ function onlyNumber(className = 'onlyNumber'){ className = '.' + classname; const onlyNumberEl = document.querySelectorAll(className); onlyNumberEl.forEach(function(el, idx){ el.addEventListener('keydown', function(keyboardEvent){ // 상단 숫자 0 ~ 9 if(keyboardEvent.which >= 48 && keyboardEvent.which = 96 && keyboardEvent.which 2023. 8. 29.
반응형