Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Ajax
- JavaScript
- select
- Update
- SQL
- 변수
- 동적
- Spring
- 컨트롤러
- 함수
- 도커
- 자바스크립트
- 동적테이블
- order by
- MySQL
- 리눅스
- 테이블
- 배열
- oracle
- 프로그래머스
- 백틱
- 명령어
- JS
- JSP
- DATE_FORMAT
- 인라인뷰
- like
- post방식
- option태그
- 코테
Archives
- Today
- Total
목록$(obj).parent().html (1)
bom's happy life
[AJAX] ajax - controller 통신 / update 기능
실수한 부분이랑 기억하고 싶은 부분 기록. 일단 update는 return 값이 기본적으로는 필요가 없다. (return 값이 없을 때는 void로 바꿔주) 그런데 return값을 만들어서 성패를 alert하는 용도로 개발하는 것이 좋다.(나는 이걸로 ㄱㄱ) 예제 → jsp 접수 ajax function accept_btn(seq, obj) { console.log("seq = " + seq); if (!confirm("승인하시겠습니까?")) { return; } var data = {"seq" : seq}; $.ajax({ type: "POST", url : "${pageContext.request.contextPath }/admin..
Deveolpment Study🗂️/AJAX
2023. 10. 26. 16:51