function getloc() {
navigator.geolocation.getCurrentPosition(updateLocation_m, handleLocationError_m);
}
function updateLocation_m(position) {
str_lat = position.coords.latitude;
str_lng = position.coords.longitude;
$('#comp_list').append("3");
//get_aound_hospital(str_lat,str_lng);
}
function handleLocationError_m(error) {
alert('위치서비스를 허용해 주세요.');
//get_aound_hospital(str_lat,str_lng);
$('#subcon1').append('');
$('#comp_list').append(error);
}
function get_aound_hospital(str_lat,str_lng){
$.post("/get_main_hospital.php",{lat:str_lat,lng:str_lng},function(data){
$('.my_around').html(data);
});
}
'웹 개발 이야기 > js, jquery' 카테고리의 다른 글
[JS] 그누보드의 smarteditor2 하이퍼링크 새창에서 열기 (0) | 2023.03.09 |
---|---|
[JS] 선택된 영역의 텍스트 가져오기 (0) | 2023.03.09 |
[JQUERY] 라디오버튼_선택된것과 안된것들 css 지정 (0) | 2023.03.08 |
[JQUERY] 무한스크롤 (ajax 이용) (0) | 2023.03.08 |
[JS] 숫자에 콤마 붙이기 (0) | 2023.03.08 |
댓글