0
이 코드 단편은 HTML 5 독립형 웹 페이지의 일부입니다. 다른 사람이이 코드를 업데이트하여 URL에 액세스 할 수없는 경우 인터넷 연결을 확인하도록 요청할 수 있습니까? 지금 그것은 아무것도하지 않으며 그것은 받아 들일 수 없습니다.ajax/json 가져 오기 오류 처리
//get grid for station
function insertTideGrid(marker, stationId, defaultCenter) {
currentMarker = marker;
currentStationId = stationId;
if(grids['station'+stationId]) {
addTextToInfowindow(marker, grids['station'+stationId], defaultCenter);
} else {
addTextToInfowindow(marker, '<img src="../images/ajax-loader.gif" /> <br /> Loading...', defaultCenter);
$.ajax({
url: 'http://www.mydomain/page.php',
dataType: 'jsonp',
type: 'GET',
data: {'station': stationId, 'json': true},
success: function(data){
}
})
}
}