私が構築している Web サイトでは、ログイン時に (データベースが他のサーバー上にあるため)、json パディングを使用して、ユーザーが正しい資格情報であるかどうかを確認します。
完全な災害であるクロム、サファリ、オペラで試してみるまで、それは完璧に動作しています(ie7、ie8、およびFF)。
$.ajax({
type: "GET",
dataType: "jsonp",
url: "http://someurl.com",
data: aRequestData,
cache: false,
error: function (XMLHttpRequest, textStatus, errorThrown) {
// typically only one of textStatus or errorThrown
// will have info
alert("Error occured textStatus=" + textStatus + " errorThrown=" + errorThrown);
},
success: function(data) {
alert('success');
}
});
プレーンでシンプルで、ブラウザウィンドウで動作しますが、驚いたことに、クロム、サファリ、オペラでは動作せず、成功のアラートに到達しませんでした.
この問題を解決する方法を知っている人はいますか?
ありがとう。