Яндекс карты. Обработка json ответа
Салют! Подскажите, что не так в коде:
$(document).ready(function(){
$('#maplist').click(function(){
$.getJSON('http://maps.yandex.ru/?text=Детские+сады&where=&sll=37.73619078845212%2C55.786558591756325&sspn=0.07630348205566406%2C0.025052286112980937&source=catalog&output=json?callback=?', {}, function(json){
$('#maplist').text( json.vpage.data.businesses.GeoObjectCollection.features);
});
})
});
Говорит не хватает ";". Уже все перепробовал, гугл тоже не помог. Спасите-помогите.:help: |
Цитата:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
</style>
<script type="text/javascript">
$(function(){
$('#maplist').click(function(){
var url='http://maps.yandex.ru/?text=Детские+сады&where=&sll=37.73619078845212%2C55.786558591756325&sspn=0.07630348205566406%2C0.025052286112980937&source=catalog&output=json';
url+='?callback=?';
$.getJSON(
url,
{},
function(json,textStatus){
alert(textStatus);
$('#maplist').text(json.vpage.data.businesses.GeoObjectCollection.features);
}
);
})
});
</script>
</head>
<body>
<button id='maplist'>Test</button>
<div id='maplist'></div>
</body>
</html>
У меня пишет Цитата:
Т.е. ответа не получаю... |
Цитата:
|
Цитата:
Syntax error at line 1 while loading: expected ';', got ':'
{"request":{"args":{"page":"in
----------^
|
Цитата:
http://jsonlint.com/ он говорит все ок. Как понять?:) |
Цитата:
Гадать не вижу смысла... |
Несколько дней назад Я.Карты перестали возвращать json ответ, вместо этого получаю Unauthorized. Что это?
|
| Часовой пояс GMT +3, время: 08:05. |