캘린더 관련 질문입니다. 정보
캘린더 관련 질문입니다.본문
은행나무 침대님의 캘린더 소스를 받아서 사용중인데..
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=93077&sca=%EB%8B%AC%EB%A0%A5
utf-8 용인것 같아 자료실의 euc-kr 변환기로 돌려서 사용중입니다.
현재 다른건 전혀 문제가 없는데 글쓰기 폼에서 날짜 선택 .js부분이 에러가 나더군요 ㅠ,.ㅜ
조그만 날짜선택 달력을 불러오질 못합니다.
========================오류메시지=======================================
웹 페이지 오류 세부 정보
사용자 에이전트: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
타임스탬프: Thu, 18 Aug 2011 02:20:18 UTC
메시지: 개체가 이 속성 또는 메서드를 지원하지 않습니다.
줄: 78
문자: 3
코드: 0
URI: http://도메인/skin/board/스킨명/calendar/calendar.js
==========================================================================
오류부분은
Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate(),seq);
요 라인인데 이해가 안되어 도움요청드립니다.
오류라인이 포함된 소스부분은
============================소스===========================================
function Calendar_D(obj,type,seq) {
dateType= type;
var now = obj.value.split("-");
target = obj;
var top = document.body.clientTop + fn_getObjectTop(obj);
var left = document.body.clientLeft + fn_getObjectLeft(obj);
calendar = fn_getObject("minical");
//calendar = document.getElementById("minical");
calendar.style.pixelTop = top + obj.offsetHeight;
calendar.style.pixelLeft = left;
calendar.style.display = '';
if (now.length == 3) {
Cal_iFrame.Show_cal(now[0],now[1],now[2],seq);
} else {
now = new Date();
Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate(),seq);
}
}
===========================================================================
참고로 폼페이지에서 불러오는
============================부분은=========================================
<input type="text" class="inputField" maxlength=10 name="wr_1" style="width:70;" value="<?=$write["wr_1"]?>" required> <img src="<?=$board_skin_path?>/img/icon_calendar.gif" onClick="Calendar_D(wr_1,'yyyy-mm-dd');" alt="달력" style="cursor:hand">
===========================================================================
입니다..
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=93077&sca=%EB%8B%AC%EB%A0%A5
utf-8 용인것 같아 자료실의 euc-kr 변환기로 돌려서 사용중입니다.
현재 다른건 전혀 문제가 없는데 글쓰기 폼에서 날짜 선택 .js부분이 에러가 나더군요 ㅠ,.ㅜ
조그만 날짜선택 달력을 불러오질 못합니다.
========================오류메시지=======================================
웹 페이지 오류 세부 정보
사용자 에이전트: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
타임스탬프: Thu, 18 Aug 2011 02:20:18 UTC
메시지: 개체가 이 속성 또는 메서드를 지원하지 않습니다.
줄: 78
문자: 3
코드: 0
URI: http://도메인/skin/board/스킨명/calendar/calendar.js
==========================================================================
오류부분은
Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate(),seq);
요 라인인데 이해가 안되어 도움요청드립니다.
오류라인이 포함된 소스부분은
============================소스===========================================
function Calendar_D(obj,type,seq) {
dateType= type;
var now = obj.value.split("-");
target = obj;
var top = document.body.clientTop + fn_getObjectTop(obj);
var left = document.body.clientLeft + fn_getObjectLeft(obj);
calendar = fn_getObject("minical");
//calendar = document.getElementById("minical");
calendar.style.pixelTop = top + obj.offsetHeight;
calendar.style.pixelLeft = left;
calendar.style.display = '';
if (now.length == 3) {
Cal_iFrame.Show_cal(now[0],now[1],now[2],seq);
} else {
now = new Date();
Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate(),seq);
}
}
===========================================================================
참고로 폼페이지에서 불러오는
============================부분은=========================================
<input type="text" class="inputField" maxlength=10 name="wr_1" style="width:70;" value="<?=$write["wr_1"]?>" required> <img src="<?=$board_skin_path?>/img/icon_calendar.gif" onClick="Calendar_D(wr_1,'yyyy-mm-dd');" alt="달력" style="cursor:hand">
===========================================================================
입니다..
댓글 전체
휴우~ 스스로 간신히 해결봤네요 ..ㅋㅋ
같은 스킨쓰시는 분들 같은 오류 있으시던데..
저와 같은 고생 않게..
스킨폴더/calendar/calendar.js 파일 7줄 보시면 calendar.html 파일 경로 때문에 생기는 문제입니다.
같은 오류나신분들 참고하세요~^^;;
같은 스킨쓰시는 분들 같은 오류 있으시던데..
저와 같은 고생 않게..
스킨폴더/calendar/calendar.js 파일 7줄 보시면 calendar.html 파일 경로 때문에 생기는 문제입니다.
같은 오류나신분들 참고하세요~^^;;