<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="Script.js" ></script>
<script type="text/javascript">
function test()
{
var items = [];
$.getJSON("http://api.4geo.ru/rest/geocode/search.json?query=Сургут,%20мира,%205",
function (data)
{
$.each(data.items, function (key, i)
{
items.push('<li id="' + key + '">' + i + '</li>');
});
$('<ul/>', {
'class1': 'list',
html: items.join('')
}).appendTo('body');
});
}
</script>
<meta charset="utf-8" />
<title></title>
</head>
<body onload="test()">
</body>
</html> |