모바일 kcp 휴대폰인증 오류 및 도로명 주소 검색 수정

This commit is contained in:
chicpro
2013-12-20 13:57:38 +09:00
parent 6ddf735857
commit d5fcfc5220
5 changed files with 38 additions and 132 deletions

View File

@ -13,19 +13,16 @@ function certify_win_open(type, url)
}
else if(type == 'kcp-hp')
{
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) == false ) // 스마트폰이 아닌경우
{
var return_gubun;
var width = 410;
var height = 500;
var return_gubun;
var width = 410;
var height = 500;
var leftpos = screen.width / 2 - ( width / 2 );
var toppos = screen.height / 2 - ( height / 2 );
var leftpos = screen.width / 2 - ( width / 2 );
var toppos = screen.height / 2 - ( height / 2 );
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
var position = ",left=" + leftpos + ", top=" + toppos;
var AUTH_POP = window.open(url,'auth_popup', winopts + position);
}
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
var position = ",left=" + leftpos + ", top=" + toppos;
var AUTH_POP = window.open(url,'auth_popup', winopts + position);
}
}

View File

@ -43,7 +43,7 @@ sigungu['세종특별자치시'] = '없음';
$(function() {
// 시도 선택시 시군구 option 을 만든다.
$("#sido").on("change", function() {
$("#sido").bind("change", function() {
var sido = $(this).val();
gugun_make(sido);
@ -77,25 +77,17 @@ function gugun_make(sido)
function search_call(page)
{
$("#q_info").fadeOut(200);
var sido = $("#sido").val();
var gugun = $("#gugun").val();
var q = $.trim($("#q").val());
if(!page)
page = 1;
$.ajax({
type: "POST",
url: "http://juso.sir.co.kr/search.php",
async: false,
dataType: "jsonp",
jsonp: "callback",
data: {
"sido": sido,
"gugun": gugun,
"page": page,
"q": q
},
success:function(data) {
$.getJSON("http://juso.sir.co.kr/search.php?sido="+sido+"&gugun="+gugun+"&page="+page+"&q="+q+"&callback=?",
function(data) {
$("#result").empty();
if(data.error) {
@ -105,5 +97,5 @@ function search_call(page)
$("#result").html(data.juso);
}
});
);
}