외부 웹 사이트에서 단일 페이지를로드 할 수 있습니까?jQuery 외부 사이트 페이지로드
나는 당신이 다른 도메인에 페이지를로드하려고 한 페이지를 표시하기 위해 노력하고 있지만
$("#response").load("http://domain.com", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
alert(msg + xhr.status + " " + xhr.statusText);
}
});
도움이 될 것 크게
네, 가능하지만, 당신이 여기를보세요 PHP : –
1 라인이 필요합니다 봉사하는 행복 - http://en.wikipedia.org/을 wiki/Cross-origin_resource_sharing 및 여기 http://msdn.microsoft.com/en-us/library/windows/apps/hh767443.aspx – Bakudan
RSS 피드 만 필요하고 Google에 의존하지 않으려면 [ jquery-feeds] (https://github.com/camagu/jquery-feeds/). – guaka