그누보드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년 전
감사합니다 !
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8030 | 9년 전 | 399 | ||
| 8029 | 9년 전 | 324 | ||
| 8028 | 9년 전 | 284 | ||
| 8027 | 9년 전 | 292 | ||
| 8026 | 9년 전 | 363 | ||
| 8025 | 9년 전 | 403 | ||
| 8024 | 9년 전 | 369 | ||
| 8023 | 9년 전 | 410 | ||
| 8022 | 9년 전 | 329 | ||
| 8021 | 9년 전 | 345 | ||
| 8020 | 9년 전 | 339 | ||
| 8019 | 9년 전 | 360 | ||
| 8018 | 9년 전 | 462 | ||
| 8017 | 9년 전 | 550 | ||
| 8016 | 9년 전 | 361 | ||
| 8015 | 9년 전 | 405 | ||
| 8014 | 9년 전 | 340 | ||
| 8013 | 9년 전 | 256 | ||
| 8012 | 9년 전 | 261 | ||
| 8011 | 9년 전 | 461 | ||
| 8010 | 9년 전 | 317 | ||
| 8009 | 9년 전 | 325 | ||
| 8008 | 9년 전 | 301 | ||
| 8007 | 9년 전 | 450 | ||
| 8006 | 9년 전 | 485 | ||
| 8005 |
|
9년 전 | 984 | |
| 8004 | 9년 전 | 372 | ||
| 8003 | 9년 전 | 442 | ||
| 8002 | 9년 전 | 336 | ||
| 8001 |
|
9년 전 | 682 | |
| 8000 | 9년 전 | 440 | ||
| 7999 | 9년 전 | 397 | ||
| 7998 | 9년 전 | 449 | ||
| 7997 | 9년 전 | 323 | ||
| 7996 | 9년 전 | 554 | ||
| 7995 | 9년 전 | 489 | ||
| 7994 | 9년 전 | 365 | ||
| 7993 | 9년 전 | 429 | ||
| 7992 | 9년 전 | 531 | ||
| 7991 | 9년 전 | 276 | ||
| 7990 | 9년 전 | 306 | ||
| 7989 | 9년 전 | 321 | ||
| 7988 | 9년 전 | 748 | ||
| 7987 | 9년 전 | 450 | ||
| 7986 | 9년 전 | 447 | ||
| 7985 | 9년 전 | 527 | ||
| 7984 | 9년 전 | 446 | ||
| 7983 | 9년 전 | 689 | ||
| 7982 | 9년 전 | 549 | ||
| 7981 | 9년 전 | 501 | ||
| 7980 | 9년 전 | 522 | ||
| 7979 | 9년 전 | 511 | ||
| 7978 | 9년 전 | 481 | ||
| 7977 | 9년 전 | 417 | ||
| 7976 | 9년 전 | 873 | ||
| 7975 | 9년 전 | 388 | ||
| 7974 | 9년 전 | 416 | ||
| 7973 | 9년 전 | 622 | ||
| 7972 | 9년 전 | 402 | ||
| 7971 | 9년 전 | 473 | ||
| 7970 | 9년 전 | 322 | ||
| 7969 | 9년 전 | 559 | ||
| 7968 | 9년 전 | 401 | ||
| 7967 | 9년 전 | 389 | ||
| 7966 | 9년 전 | 399 | ||
| 7965 |
|
9년 전 | 1034 | |
| 7964 | 9년 전 | 421 | ||
| 7963 | 9년 전 | 431 | ||
| 7962 | 9년 전 | 416 | ||
| 7961 |
전갈자리남자
|
9년 전 | 520 | |
| 7960 | 9년 전 | 987 | ||
| 7959 | 9년 전 | 566 | ||
| 7958 | 9년 전 | 426 | ||
| 7957 | 9년 전 | 380 | ||
| 7956 | 9년 전 | 377 | ||
| 7955 | 9년 전 | 476 | ||
| 7954 | 9년 전 | 406 | ||
| 7953 | 9년 전 | 454 | ||
| 7952 | 9년 전 | 378 | ||
| 7951 | 9년 전 | 517 | ||
| 7950 | 9년 전 | 413 | ||
| 7949 | 9년 전 | 400 | ||
| 7948 | 9년 전 | 339 | ||
| 7947 | 9년 전 | 952 | ||
| 7946 | 9년 전 | 461 | ||
| 7945 | 9년 전 | 417 | ||
| 7944 | 9년 전 | 461 | ||
| 7943 | 9년 전 | 402 | ||
| 7942 | 9년 전 | 420 | ||
| 7941 | 9년 전 | 413 | ||
| 7940 | 9년 전 | 913 | ||
| 7939 | 9년 전 | 386 | ||
| 7938 | 9년 전 | 416 | ||
| 7937 | 9년 전 | 305 | ||
| 7936 | 9년 전 | 899 | ||
| 7935 | 9년 전 | 479 | ||
| 7934 | 9년 전 | 444 | ||
| 7933 | 9년 전 | 562 | ||
| 7932 | 9년 전 | 521 | ||
| 7931 | 9년 전 | 571 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기