그누보드5 에 Daum 우편번호 찾기 API 연동 하기
관련파일 : skin/member/basic/register_form.skin.php
<a href="<?php echo G5_BBS_URL ?>/zip.php?frm_name=fregisterform&frm_zip1=mb_zip1&frm_zip2=mb_zip2&frm_addr1=mb_addr1&frm_addr2=mb_addr2&frm_addr3=mb_addr3&frm_jibeon=mb_addr_jibeon" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
를
<a href="javascript:openDaumPostcode();" id="reg_zip_find" class="btn_frmline">주소 검색</a><br>
로 변경.
이때 a 태그에 들어있던 win_zip_find 클래스를 삭제하는것이 포인트 입니다.
삭제를 안하면 기존 win_zip_find click 이벤트와 충돌이 납니다.
그리고 맨 하단에 아래 자바스크립트 코드를 추가합니다.
<script src="http://dmaps.daum.net/map_js_init/postcode.js"></script>
<script type="text/javascript">
<!--
function openDaumPostcode() {
new daum.Postcode({
oncomplete: function(data) {
document.getElementById('reg_mb_zip1').value = data.postcode1;
document.getElementById('reg_mb_zip2').value = data.postcode2;
document.getElementById('reg_mb_addr1').value = data.address;
document.getElementById('reg_mb_addr2').focus();
document.getElementById('reg_mb_addr3').value = data.addressEnglish;
}
}).open();
}
//-->
</script>
모바일은 아래 링크를 참조하세요.
댓글 1개
VeritasLuxMea
11년 전
감사합니다 !
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2308 | ||
| 7129 | 11년 전 | 711 | ||
| 7128 |
senseme
|
11년 전 | 1303 | |
| 7127 | 11년 전 | 1180 | ||
| 7126 | 11년 전 | 825 | ||
| 7125 | 11년 전 | 2955 | ||
| 7124 | 11년 전 | 1428 | ||
| 7123 |
잘살아보자
|
11년 전 | 1291 | |
| 7122 |
잘살아보자
|
11년 전 | 692 | |
| 7121 |
잘살아보자
|
11년 전 | 3052 | |
| 7120 |
잘살아보자
|
11년 전 | 2920 | |
| 7119 |
잘살아보자
|
11년 전 | 737 | |
| 7118 |
잘살아보자
|
11년 전 | 3436 | |
| 7117 |
잘살아보자
|
11년 전 | 854 | |
| 7116 | 11년 전 | 751 | ||
| 7115 | 11년 전 | 1038 | ||
| 7114 | 11년 전 | 855 | ||
| 7113 | 11년 전 | 669 | ||
| 7112 | 11년 전 | 1090 | ||
| 7111 | 11년 전 | 1801 | ||
| 7110 | 11년 전 | 1036 | ||
| 7109 |
버섯먹은나
|
11년 전 | 817 | |
| 7108 | 11년 전 | 654 | ||
| 7107 | 11년 전 | 2415 | ||
| 7106 | 11년 전 | 1964 | ||
| 7105 | 11년 전 | 2487 | ||
| 7104 | 11년 전 | 1425 | ||
| 7103 |
|
11년 전 | 2716 | |
| 7102 | 11년 전 | 3124 | ||
| 7101 | 11년 전 | 4447 | ||
| 7100 | 11년 전 | 5796 | ||
| 7099 | 11년 전 | 2146 | ||
| 7098 | 11년 전 | 1729 | ||
| 7097 | 11년 전 | 1467 | ||
| 7096 | 11년 전 | 1133 | ||
| 7095 |
잘살아보자
|
11년 전 | 862 | |
| 7094 |
잘살아보자
|
11년 전 | 1068 | |
| 7093 |
잘살아보자
|
11년 전 | 943 | |
| 7092 |
잘살아보자
|
11년 전 | 1415 | |
| 7091 |
잘살아보자
|
11년 전 | 2216 | |
| 7090 |
잘살아보자
|
11년 전 | 898 | |
| 7089 | 11년 전 | 1072 | ||
| 7088 | 11년 전 | 1718 | ||
| 7087 | 11년 전 | 1414 | ||
| 7086 | 11년 전 | 1317 | ||
| 7085 |
|
11년 전 | 1240 | |
| 7084 | 11년 전 | 1158 | ||
| 7083 | 11년 전 | 3508 | ||
| 7082 | 11년 전 | 1157 | ||
| 7081 | 11년 전 | 1742 | ||
| 7080 | 11년 전 | 2026 | ||
| 7079 | 11년 전 | 1335 | ||
| 7078 | 11년 전 | 1308 | ||
| 7077 | 11년 전 | 1315 | ||
| 7076 | 11년 전 | 774 | ||
| 7075 | 11년 전 | 1157 | ||
| 7074 |
네이비칼라
|
11년 전 | 1512 | |
| 7073 | 11년 전 | 1481 | ||
| 7072 |
|
11년 전 | 836 | |
| 7071 | 11년 전 | 1212 | ||
| 7070 | 11년 전 | 939 | ||
| 7069 | 11년 전 | 1712 | ||
| 7068 | 11년 전 | 1368 | ||
| 7067 |
TPSint
|
11년 전 | 750 | |
| 7066 | 11년 전 | 2156 | ||
| 7065 | 11년 전 | 6657 | ||
| 7064 | 11년 전 | 1302 | ||
| 7063 | 11년 전 | 1146 | ||
| 7062 | 11년 전 | 1081 | ||
| 7061 | 11년 전 | 923 | ||
| 7060 | 11년 전 | 1477 | ||
| 7059 | 11년 전 | 887 | ||
| 7058 |
EngineMan
|
11년 전 | 3410 | |
| 7057 | 11년 전 | 1252 | ||
| 7056 | 11년 전 | 1642 | ||
| 7055 | 11년 전 | 1025 | ||
| 7054 | 11년 전 | 2663 | ||
| 7053 |
네이비칼라
|
11년 전 | 1292 | |
| 7052 | 11년 전 | 2586 | ||
| 7051 | 11년 전 | 1946 | ||
| 7050 | 11년 전 | 2462 | ||
| 7049 | 11년 전 | 1422 | ||
| 7048 | 11년 전 | 2541 | ||
| 7047 | 11년 전 | 1363 | ||
| 7046 | 11년 전 | 1045 | ||
| 7045 | 11년 전 | 1070 | ||
| 7044 | 11년 전 | 5442 | ||
| 7043 | 11년 전 | 1236 | ||
| 7042 | 11년 전 | 796 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 766 | |
| 7040 | 11년 전 | 1119 | ||
| 7039 | 11년 전 | 1472 | ||
| 7038 | 11년 전 | 1885 | ||
| 7037 | 11년 전 | 2189 | ||
| 7036 | 11년 전 | 1095 | ||
| 7035 | 11년 전 | 1415 | ||
| 7034 | 11년 전 | 1367 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 1002 | |
| 7032 | 11년 전 | 761 | ||
| 7031 | 11년 전 | 2194 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기