ESV API からデータを取得して表示しようとしています: http://www.esvapi.org/
codecademy.com ドメインでは機能していますが、esvapi.org ドメインでは機能していません。
フィドルを参照してください: http://jsfiddle.net/BinaryAcid/yqCcn/
<input type="button" value="get data" id="btn" >
$("#btn").click(function() {
var response = '';
$.ajax({ type: "GET",
// url: "http://www.esvapi.org/v2/rest/passageQuery?key=IP&passage=John+1",
url: "http://www.codecademy.com/",
async: false,
success : function(text)
{
response = text;
}
});
document.write(response);
});