본문 바로가기

Error

CKeditor5 사용시 ckeditor is not defined CKeditor4에서 사용하는 contents 값을 가져오는 소스 CKEDITOR.instances.textarea_id.getData() CKeditor5 썼더니 ckeditor is not defined 오류가 뜬다. 안타깝게도 CKeditor5에서는 작용하지않는다...^^ ✔ 변수(여기서는 theEditor)를 만들어서 넣어놓고 나중에 그걸로 getData()해서 가져와야함 역시 설명서를 잘 읽어야 쓸모없는 실수를 하지 않는다! https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/basic-api.html#getting-the-editor-data Basic API - CKEditor 5 Documentation Learn ho.. 더보기
[Mysql] Error Code: 1451. Cannot delete or update a parent row: a foreign key constraint fails 🙄 FK 설정하고 DELETE 와 UPDATE를 칠때 나오는 에러 1. 앞으로 계속 FK설정하고도 그냥 연결되어있는 것을 다 DELETE 해버리고 싶을때 on delete cascade 사용 2. 임시방편으로 그냥 잘못넣은 데이터 하나 지우고 싶을때 SET FOREIGN_KEY_CHECKS=0; //잠시 FK설정 풀고 하고싶은 SQL문 실행; SET FOREIGN_KEY_CHECKS=1; //다시 FK설정 등록 더보기
[Mysql workbench] 에러 1064 : You have an error in your SQL syntax; 오류 내용 Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''2003100005'' at line 1 select * from 테이블이름; 을 했는데 급 뜬 에러.. 알고보니 import 한 테이블 명이 숫자로만 이루어져있어서 그런듯 Mysql reserved words에 들어가는 단어를 사용하면 그렇다! 해결방법 이를 위해서는 reserved words를 키보드 ESC밑에 있는 ` `를 사용해 감싸준다. select * from `테이블이름`; 하니까 완료! 더보기
ajax 사용시 error(no transport) 크롬, 익스플로어 다되는 페이지에서 안된다고 전화해서 확인해보니 익스플로어 버전 9를 쓰시는분... ajax에서 통신이 안되는것 같아 확인해보니 no transport가 뜬다 ajax에서 error확인방법 (success 밑에 추가) , error:function(request,status,error){ console.log("code:"+request.status+"message:"+request.responseText+"error:"+error); } no transport 일 경우 해결방법(아작스 코드 위에 써주기) $.support.cors = true; : 크로스 도메인 허용하는 코드 더보기