aspx サイトから php サイトに ajax を使用して post 変数を送信しようとしましたが、応答がありません。
ASPX サイト:
$.ajax ({
type: "POST",
url:"www.mySite.com/sqlExecute.php",
data: {'d':'empty'},
dataType: "text",
success: function(data) {
alert (data);
}
});
sqlExecute.php:
<?php
echo "Hello World";
?>
エラー関数を追加すると:
error: function(jqXHR,textStatus,errorThrown) {
alert("jqXHR: "+jqXHR.responsetext+" textStatus: "+textStatus+" errorThrown: "+ errorThrown );}
});
私は得る:
jqXHR: undefined textStatus: error errorThrown:
ありがとう!