私はWebアプリケーションを開発しています。ここでは、JavaScriptでポップアップウィンドウを作成しました。今、私はこの窓の中に天気予報を作りたいと思っています。天気予報を作成する最も簡単な方法は何ですか?
これを行う最も簡単な方法は何ですか?
私はここのようにそれをやった:Get weather from Yahoo with jQuery
$(".popup-button").click(function(evt){
//prevent default link behavior
evt.preventDefault();
//get id from clicked element
var id = $(this).attr("id");
switch (id) {
case "popup-button-wetter":
//centering with css
centerPopup($("#popup-wrapper-wetter"));
//load popup
loadPopupadditional($("#popup-wrapper-wetter"));
//get weather
getWeather()
break;
......
function getWeather() {
$.get("http://weather.yahooapis.com/forecastrss?w=782458&u=c", function(data){
console.log("Data Loaded: " + data);
});
}
});
が、その後、私はこのエラーを得た:
XMLHttpRequestがhttp://weather.yahooapis.com/forecastrss?w=782458&u=cをロードすることはできません。 Originファイル://は、Access-Control-Allow-Originによって許可されていません。
この意味は?