当我运行此代码时,没有显示任何内容,它显示为空白。我检查了检查员和网络标签..
function storevaluestoSession()
{
var somewhere=map.getCenter()
map.setCenter(somewhere);
var somewhere=String(somewhere)
var nloc=somewhere.search(',');
var location2=String(somewhere).substring(1,nloc);
var sw2=String(somewhere);
var lsw2=sw2.length-1;
var lsw22=nloc+1;
var location3=sw2.substring(lsw2,lsw22);
var myLatLng = new google.maps.LatLng(location2,location3);
var lat2=ltrim(location2.toString());
var lon2=ltrim(location3.toString());
var CurrentpkFamily=<%=session("pkfamily")%>;
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","sessionhelper.asp?lat="+lat2+"&lon="+lon2+"&CurrentpkFamily="+CurrentpkFamily, true);
xmlhttp.send();
}
我是asp的新手,有人可以帮忙吗?
谢谢,
答案 0 :(得分:-1)
响应在xmlhttp.responseXML中。添加
alert(xmlhttp.responseXML);
在最后}之前看到服务器响应。