ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


DAUM ¿ìÆí¹øÈ£ ¼­ºñ½º È°¿ëÇϱâ
8³â Àü
ÀÌÀüºÎÅÍ »ç¿ëÇÏ´ø ±×´©º¸µå4ÀÇ ±â´ÉÁß¿¡ ÀÚÁÖ »ç¿ëÇÏÁö ¾Ê¾Æ¼­ ¸ð¸£°í ÀÖ¾ú´ø º¯È­°¡ ÀÖ¾ú´õ±º¿ä. ȸ¿ø°¡ÀÔÀ̳ª  È¸¿ø Á¤º¸ ¼öÁ¤¿¡¼­ ÁÖ¼Ò ÀԷ¿¡ »ç¿ëÇÏ´ø ¿ìÆí¹øÈ£ °Ë»ö ±â´ÉÀÔ´Ï´Ù. ±âÁ¸ Äڵ忡¼­ AJAX ¹æ½ÄÀ¸·Î sir.co.kr »çÀÌÆ®¿¡¼­ Á¤º¸¸¦ °Ë»ö ¹× Ãâ·ÂÇØ ÁÖ´Â ¹æ½ÄÀ̾ú´Âµ¥ sir.co.kr¿¡¼­ ´õÀÌ»ó Áö¿øÇÏÁö ¾Ê´Â´Ù´Â °øÁö°¡ ÀÖ´õ±º¿ä. ´Ê¾úÁö¸¸ ÇØ°á ¹æ¹ýÀ» ã¾Æº¸´Ï ´Ù¸¥ ºÐÀÌ ÁÖ¼Ò¸¸ ¹Ù²Ù¸é µ¿ÀÏÇÑ ¹æ½ÄÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¼­ºñ½º¸¦ Á¦°øÇϱ⵵ ÇÏÁö¸¸ ±Ù¿øÀûÀÎ ÇØ°á ¹æ¹ýÀÌ ¾Æ´Ï°í ¶Ç »õ·Î¿î ¿ìÆí¹øÈ£ ü°è¸¦ Àû¿ëÇÏ´Â ¹®Á¦¿Í Áö¼ÓÀûÀÎ µ¥ÀÌÅͺ£À̽º ¾÷µ¥ÀÌÆ®¸¦ »ý°¢ÇÑ ´Ù¸é Æ÷Åп¡¼­ Á¦°øÇÏ´Â ¼­ºñ½º¸¦ Àû¿ëÇÏ´Â °ÍÀÌ ÀûÀýÇÏ´Ù°í »ý°¢ µÇ¾ú½À´Ï´Ù. ¹«¾ùº¸´Ù ¾Æ·¡¿Í °°Àº ÀåÁ¡ÀÌ ÀÖ¾ú½À´Ï´Ù.

•º°µµÀÇ µî·Ï °úÁ¤ÀÌ ÇÊ¿ä¾ø½À´Ï´Ù.
OPENAPI¸¸ ÇÏ´õ¶óµµ °³¹ßÀÚ µî·Ï°ú Å°¹ß±ÞµîÀÇ °úÁ¤ÀÌ ÇÊ¿äÇß½À´Ï´Ù.

•Æ®·¡ÇÈ Á¦ÇÑÀÌ ¾ø½À´Ï´Ù.
OPENAPIÀÇ °æ¿ì¿¡´Â ÀÏ Æ®·¡ÇÈ Á¦ÇÑÀÌ ÀÖ½À´Ï´Ù.

•¹«¾ùº¸´Ù ¹«·áÀÌ°í, Ä£ÀýÇÑ ¿¹Á¦¿Í ºü¸¥ ¼Óµµ´Â ¸¶À½¿¡ ½ï µé¾ú½À´Ï´Ù.

•¿ìÆí¹øÈ£ µ¥ÀÌÅͺ£À̽ºÀÇ ÃֽŠ¾÷µ¥ÀÌÆ®¿¡ ´ëÇÑ ºÎ´ãÀÌ ¾ø¾îÁ³½À´Ï´Ù.

•ÃÖ±Ù ÇØ¿Ü ¹è¼ÛÀ¸·Î ¿µ¹® ÁÖ¼Ò È°¿ë¿¡ ´ëÇÑ ÇÊ¿ä°¡ ´Ã°í Àִµ¥ ±×¿¡ ´ëÇÑ ÀÚ¿¬½º·¯¿î ´ëó°¡ °¡´ÉÇÕ´Ï´Ù.

•¸Ê°úÀÇ ¿¬µ¿, ÀÚµ¿ ¿Ï¼ºµî ´Ù¾çÇÑ ºÎ°¡ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.

ÀÌ»óÀÇ ÀåÁ¡À» È°¿ëÇÏ´Â ¿¹Á¦·Î ±×´©º¸µå4ÀÇ ¿ìÆí¹øÈ£ °Ë»ö ±â´ÉÀ» DAUM ¿ìÆí¹øÈ£ ¼­ºñ½º·Î ±³Ã¼ÇÏ´Â °úÁ¤À» ´Ù·ç¾î º¸°Ú½À´Ï´Ù.

¿ì¼± DAUM ¿ìÆí¹øÈ£ ¼­ºñ½ºÀÇ »çÀÌÆ® ÁÖ¼Ò´Â http://postcode.map.daum.net/guideÀÔ´Ï´Ù. »ó´ÜÀÇ ¿¹Á¦¿Í ÇÔ¼öµîÀ» ÂüÁ¶ÇÏ¸é ´õ¿í ´Ùµë¾îÁø ÀÀ¿ëÀ» °³¹ßÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script><script src="http://s1.daumcdn.net/svc/attach/U03/cssjs/postcode/1448959281377/151201.js" type="text/javascript" charset="UTF-8"></script>
<script>
    function execDaumPostcode() {
        new daum.Postcode({
            oncomplete: function(data) {
                // Æ˾÷¿¡¼­ °Ë»ö°á°ú Ç׸ñÀ» Ŭ¸¯ÇßÀ»¶§ ½ÇÇàÇÒ Äڵ带 ÀÛ¼ºÇÏ´Â ºÎºÐ.

                // µµ·Î¸í ÁÖ¼ÒÀÇ ³ëÃâ ±ÔÄ¢¿¡ µû¶ó ÁÖ¼Ò¸¦ Á¶ÇÕÇÑ´Ù.
                // ³»·Á¿À´Â º¯¼ö°¡ °ªÀÌ ¾ø´Â °æ¿ì¿£ °ø¹é('')°ªÀ» °¡Áö¹Ç·Î, À̸¦ Âü°íÇÏ¿© ºÐ±â ÇÑ´Ù.
                var fullRoadAddr = data.roadAddress; // µµ·Î¸í ÁÖ¼Ò º¯¼ö
                var extraRoadAddr = ''; // µµ·Î¸í Á¶ÇÕÇü ÁÖ¼Ò º¯¼ö

                // ¹ýÁ¤µ¿¸íÀÌ ÀÖÀ» °æ¿ì Ãß°¡ÇÑ´Ù. (¹ýÁ¤¸®´Â Á¦¿Ü)
                // ¹ýÁ¤µ¿ÀÇ °æ¿ì ¸¶Áö¸· ¹®ÀÚ°¡ "µ¿/·Î/°¡"·Î ³¡³­´Ù.
                if(data.bname !== '' && /[µ¿|·Î|°¡]$/g.test(data.bname)){
                    extraRoadAddr += data.bname;
                }
                // °Ç¹°¸íÀÌ ÀÖ°í, °øµ¿ÁÖÅÃÀÏ °æ¿ì Ãß°¡ÇÑ´Ù.
                if(data.buildingName !== '' && data.apartment === 'Y'){
                   extraRoadAddr += (extraRoadAddr !== '' ? ', ' + data.buildingName : data.buildingName);
                }
                // µµ·Î¸í, Áö¹ø Á¶ÇÕÇü ÁÖ¼Ò°¡ ÀÖÀ» °æ¿ì, °ýÈ£±îÁö Ãß°¡ÇÑ ÃÖÁ¾ ¹®ÀÚ¿­À» ¸¸µç´Ù.
                if(extraRoadAddr !== ''){
                    extraRoadAddr = ' (' + extraRoadAddr + ')';
                }

                // ¿ìÆí¹øÈ£¿Í ÁÖ¼Ò Á¤º¸¸¦ ÇØ´ç Çʵ忡 ³Ö´Â´Ù.
                //document.getElementById('sample4_postcode').value = data.zonecode; //5ÀÚ¸® »õ¿ìÆí¹øÈ£ »ç¿ë
                document.getElementById('mb_zip1').value = data.postcode1;
                document.getElementById('mb_zip2').value = data.postcode2;
                document.getElementById('mb_addr1').value = fullRoadAddr;
                document.getElementById('mb_addr3').value = extraRoadAddr;
                document.getElementById('mb_addr_jibeon').value = data.jibunAddress;
                document.getElementById('mb_addr_jibeonview').innerHTML = data.jibunAddress;
            }
        }).open('',100,100,'zipsearch');
    }
</script>
À§ÀÇ HTML Àº ±×´©º¸µå4ÀÇ È¸¿ø °¡ÀÔ ÄÚµåÀÎ skin/member/basic Æú´õÀÇ register_form.skin.phpÀÇ ÁÖ¼Ò ¿¬°ü ºÎºÐ ÀÔ´Ï´Ù. ±âÁ¸°ú ´Þ¶óÁø Á¡À̶ó¸é °¢ ÅؽºÆ® Ç׸ñ¿¡ name= »Ó¸¸¾Æ´Ï¶ó id=·Î °³º° Ç׸ñÀ» document.getElementById()·Î ÀÚ¹Ù½ºÅ©¸³Æ®¿¡¼­ Á¢±ÙÇÒ ¼ö ÀÖµµ·Ï Ãß°¡ÇØÁØ°Í°ú ¿ìÆí¹øÈ£ °Ë»ö À̹ÌÁö¸¦ Ŭ¸¯Çϸé DAUMÀÇ ÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö°¡ È£ÃâµÇµµ·Ï Çß´Ù´Â °ÍÀÔ´Ï´Ù. ÇÏ´Ü¿¡¼­ Á¤ÀÇÇÑ execDaumPostcode()¿¡ ÇØ´çÇϸç ÀÌ ÇÔ¼ö¸¦ ÅëÇؼ­ Æ˾÷À» ¶ç¿ì°í »ç¿ëÀÚ°¡ °Ë»öµÈ ÁÖ¼ÒÁß Çϳª¸¦ Ŭ¸¯ÇÏ¸é ±× °á°ú¸¦ °¢ ÅؽºÆ® Ç׸ñ¿¡ ÀÔ·ÂÇÕ´Ï´Ù.  ÇÔ¼ö ³¡ºÎºÐ¿¡ ÀÖ´Â "open('',100,100,'zipsearch')" ºÎºÐÀÌ Æ˾÷ âÀ» ¶ç¿ì´Â ºÎºÐÀ¸·Î 4¹ø° Àμö°¡ âÀÇ À̸§À» ÁöÁ¤ÇÏ´Â ºÎºÐÀ¸·Î ÀÌ À̸§À» ÅëÇؼ­ âÀ» ¿©·¯°³ Áߺ¹Çؼ­ ¶ç¿ìÁö ¾Êµµ·Ï ¿¹¹æÇÒ ¼ö ÀÖ½À´Ï´Ù. ù¹ø° Àμö´Â ±âº» °Ë»ö¾î, µÎ¹ø°¿Í ¼¼¹ø° À§ÄªÀÇ Ã¢ÀÇ À§Ä¡¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ÇÔ¼ö³»¿¡ ÁÖ¼®Ã³¸®µÇ¾î ÀÖ´Â "data.zonecode" º¯¼ö¸¦ ÅëÇؼ­ 5ÀÚ¸® »õ¿ìÆí¹øÈ£¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÃßõÃßõ : 366 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
2,765
ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬½À ¿¹Á¦ - ·£´ýÇÏ°Ô ¿òÁ÷ÀÌ´Â ÅؽºÆ® ¸¸µé±â
2,764
jQuery Mobile¿¡¼­ À¯¿ëÇÑ ÄÚµå 10°¡Áö
2,763
ÀÚ¹Ù½ºÅ©¸³Æ®·Î º¹»çÇϱ⠱â´É ±¸ÇöÇϱâ
2,762
[JqueryMobile] - Jquery Mobile È­¸é °­Á¦ ȸÀü
2,761
jQuery – ½º¸¶Æ®Æù ½ºÅ©¸° ȸÀü °¨Áö ½ºÅ©¸³Æ®
2,760
javascript audioÆÄÀÏ Àç»ý
2,759
javascript º¯¼ö scope shadowing Ŭ·ÎÀú
2,758
javascript ¹Ýº¹¹®
2,757
javascript Á¶°Ç¹®
2,756
javascript ¹è¿­
2,755
javascript ¿¬»êÀÚ¿Í ÇÔ¼ö
2,754
javascript ÀÚ·áÇü
2,753
javascript º¯¼ö
2,752
[jQuery] animate()¿¡¼­ stop()ÀÇ Á߿伺
2,751
javascript audioÆÄÀÏ Àç»ý
2,750
[jQuery.$ajax]mysql + php ¼­¹ö¿¡¼­ json µ¥ÀÌÅÍ ¾ò¾î¿À±â
2,749
Daum¿¡¼­ »ç¿ëÇÏ°í ÀÖ´Â ¸¶¿ì½º ¿À¸¥ÂÊ »ç¿ë ±ÝÁö ½ºÅ©¸³Æ®
2,748
MP3 ¸µÅ©½Ã ½ºÆ®¸®¹Ö µÇÁö ¾Ê°í ´Ù¿î·Îµå µÇµµ·Ï ¸¸µé±â
2,747
jQuery ºñµ¿±â Ajax Åë½ÅÀ» Çغ¸ÀÚ!! - JSON¹æ½Ä
2,746
[jQuery] load ¸¦ ÀÌ¿ëÇÑ ½Ç½Ã°£ ÆäÀÌÁö °¡Á®¿À±â
2,745
[jQuery]ºñµ¿±âÀûÀ¸·Î JSONÆÄÀÏ ·Îµå
2,744
[jQuery]µ¿ÀûÀ¸·Î ¿ø°Ý ÆäÀÌÁö ·Îµå
2,743
[jQuery]¿öÅ͸¶Å© ÅؽºÆ®¹Ú½º ÄÁÆ®·Ñ ±¸Çö
2,742
[jQuery]Æ®¸®ºä ÄÁÆ®·Ñ
2,741
[jQuery]¾Ö´Ï¸ÞÀÌ¼Ç È¿°ú ¸ØÃß±â - stop()
2,740
[jQuery]¿©·¯°¡Áö È¿°ú µ¿½Ã ó¸® - animate()
2,739
[jQuery]½½¶óÀÌµå ¾÷
2,738
[jQuery]½½¶óÀÌµå ¾÷/´Ù¿î - slideToggle()
2,737
[jQuery] scroll down °ú scroll up ÇÒ¶§ À̺¥Æ® Àû¿ë½ÃÅ°±â
2,736
[jQuery]addClass() : ½ºÅ¸ÀÏ Ãß°¡ [removeClass()]
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.