<script>function infothisuser(user){
var info=document.getElementById('city'),
xhttp=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP'),
address='/info/user/'+user;
info.innerHTML='<center>در حال بارگیری اطلاعات این کاربر ...</center>';
xhttp.onreadystatechange=function(){
if(xhttp.readyState==4 && xhttp.status==200){
var res=document.createElement('div');
res.innerHTML=xhttp.responseText;
var city=res.getElementsByTagName('city')[0].innerHTML;
city='تنظیم نشده است';
info.innerHTML='<div>محل سکونت : <span>'+city+'<\/span><\/div>';
}
}
xhttp.open('GET',address,true);
xhttp.send();
}
</script>