<html>
<head>
<title></title>
<script>
var xmlhttp=xmlhttp=new XMLHttpRequest();
function loadCitis(){
xmlhttp.open("GET","../php/o1otryAJAX.php",false);
xmlhttp.send();
var citis=JSON.parse(xmlhttp.responseText);
var targetUl=document.getElementById("cityList");
for(var city in citis){
var liItem=targetUl.appendChild(document.createElement("li"));
liItem.appendChild(document.createTextNode(citis[city]));
}
}
</script>
</head>
<body οnlοad="loadCitis()">
<ul id="cityList">
</ul>
</body>
</html>
var xmlhttp=xmlhttp=new XMLHttpRequest(); function loadCitis(){ xmlhttp.open("GET","../php/o1otryAJAX.php",false); xmlhttp.send(); var citis=JSON.parse(xml