본문 바로가기

ASP

문자열 치환 정규식 0-9 까지 숫자를 제거 Set eregObj = New RegExp: eregObj.Pattern = "[0-9]": eregObj.IgnoreCase = True: eregObj.Global = True: str = eregObj.Replace(str, ""): .. 더보기
네이버 스마트 에디터 ( 이미지 업로드 포함 ) 스마트 에디터에 이미지 업로드 기능을 추가된 샘플 소스입니다.. jimmy1775 님께서 asp 업로드 모듈을 개발해주시고 idtong 님께서 jsp 모듈을 개발해주셨습니다.. 감사드립니다. Test UIrl : http://www.uhoon.co.kr/test/988/SmartEditor/SEditorDemo.html DownLoad : (2013.06.30 추가) ps. 추가로 이미지 업로드 가능한 mimetype 을 일부 추가하였습니다..( png 등...) 적용 방법 : 1. 압축 해제 후 SEditorDemo.html 파일을 제외한 나머지 파일은 에디터가 삽입될 페이지와 같은 경로에 업로드하거나 또는 임의의 위치에 압축 해제 후 include된 경로를 수정하여 업로드 합니다. ( 아래 설명은 같.. 더보기
jQuery 에러 리포팅 , Ajax 디버깅 ( JS , ASP ) - 오류메시지 확인하기 Jquery 를 이용한 에러 리포팅 소스 //Ajax 호출 함수. 예시. function detailView() { $.ajax({ type: "POST", dataType: "xml", url: "xxx.asp", data: { mode : "DETAIL"}, success: function(xmlRS){ // 성공처리 } ,error: function(xhr, ajaxOptions, thrownError){ //에러처리 fnSendErrorReport(xhr.responseText); alert("Detail Load Error"); } }); } // 에러 리포팅 함수. function fnSendErrorReport(errorMsg) { $.ajax({ type: "POST", dataType: .. 더보기