私は別のサーバーに2ページあります。 AJAXを通じてjQueryを使用したajaxによるデータの取得
私はいくつかのデータを含めたい:ここでは例です:link
リンクはブラウザを介して働いています。
jQuery(window).ready(function() {
getPageWithAjax("http://www.betcatcher.com/index.php?page=valuebets&nr_row=6");
function getPageWithAjax(page)
{
//alert(page)
ajaxRequest = $.ajax(
{
url: page,
cache: false,
success: function(msg){ajaxResponse(msg)},
error: function(msg){ajaxResponse('Error loading data.'+msg.status)}
});
}
function ajaxResponse(msg)
{
$("#live_bet_ajax_content").html(msg);
}
});
しかし、データを取得しようとするとエラーが発生します。
firefox + firebugを使用し、ネットタブを使用すると、何が間違っているかを確認できるはずです。 – melaos
はい、私もファイヤーバグを使用していますが、問題の原因を特定できませんでした。 –
は、リクエストを送信したのと同じドメイン内のリクエストされたURLですか? –