Тема: jquery, getjson
Показать сообщение отдельно
  #1 (permalink)  
Старый 15.08.2010, 17:44
Новичок на форуме
Отправить личное сообщение для exytab Посмотреть профиль Найти все сообщения от exytab
 
Регистрация: 15.08.2010
Сообщений: 4

jquery, getjson
Пожалуста, подскажите, почему не выводит "a = 1" ?


<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>

$(document).ready(function () {

$.getJSON('http://exy.com.ua/q/index.php', function(data) {
alert ('a = ' + data.a);
}
);

});
</script>
</head>
<body>
</body>
</html>
Ответить с цитированием