ここでの私の目標は、jsonを使用してサーバーからデータを取得することです。このコードを実行しても何も得られませんでした。何を間違えたのかわかりません。
<!DOCTYPE html>
<html>
<head>
<script>
function fn_getdata()
{
$.getJSON("http://arvianne.com/android/index.php", function(data) {
alert(data.contacts);
});
}
</script>
</head>
<body>
<div id="iddiv_con"></div>
<button onclick="fn_getdata()">Get Data</button>
</body>