Intel XDK を使用して HTML5 モバイル アプリを構築しようとしています。何らかの理由で、Intel XDK でエミュレートすると動作しますが、実際のデバイスで試してみるとエラー アラートが表示されます。
http://localhost
次のエラーが発生しました: {"readyState":0,"responseText":"","status":0,"statusText":"error"}
request = $.ajax({
url: "http://domain.com/form.php",
type: "post",
data: serializedData
});
// callback handler that will be called on success
request.done(function (response, textStatus, jqXHR){
//do stuff
});
// callback handler that will be called on failure
request.fail(function (jqXHR, textStatus, errorThrown){
// log the error to the console
alert(
"The following error occured: "+
JSON.stringify(jqXHR,textStatus,errorThrown)
);
});