ブラウザのアドレスバーに ajax URL を直接投稿しているときに、リモートサーバーからデータを取得するために ajax を使用しています。ここにコードを貼り付けます。
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$.ajax({
url:"http://www.appitechture.com/api/index.php?action=getContactDetails&id=96",
type:'get',
datatype:'json',
success:function OnSuccess(data , status){
alert(data);
} ,
error: function OnError(request , status , error){
alert('error');
}
});
</script>
</head>
<body>
<div id="images"></div>
</body>
</html>
誰かがその解決策を知っているなら教えてください。
ありがとうございます