function getAddress() { var address = document.getElementById("addressName").value; if(address.length>2){ new WsCommonClass("GetAddressAnalyseResult", ["address", "pageSize", "pageIndex"], [address, 20, 1], queryProjectSucess, "findAddress"); } } function searchRoadPage(count) { if(searchRoadName==null){ return; } if(count==-1){//上一页 if(searchRoadNameThisPage==1){ return; } else { searchRoadNameThisPage--;//当前页减一 } }else if (count==-2){//下一页 if(searchRoadNameThisPage==searchRoadNameAllPage) { return; }else { searchRoadNameThisPage++; } }else if (count==-3){//尾页 if(searchRoadNameThisPage==searchRoadNameAllPage){ return }else { searchRoadNameThisPage=searchRoadNameAllPage; } }else if(count==0){//首页 if(searchRoadNameThisPage==1){ return }else { searchRoadNameThisPage=1; } }else { searchRoadNameThisPage=count } btClear_Click() new WsCommonClass("GetAddressAnalyseResult", ["address", "pageSize", "pageIndex"], [searchRoadName, 6, searchRoadNameThisPage], queryProjectSucess, "addressNamePage"); } function queryProjectSucess(evt, keyValue) { var xmlUtil = new XMLUtil(); var xmlResult = xmlUtil.stringToXml(evt[0].childNodes[0].textContent); if (xmlResult) { var xmlAddressResult = xmlResult.getElementsByTagName("Address"); var promptLenth = xmlAddressResult.length; switch (keyValue) { case "findAddress": var option = "";; for (var i = 0; i < promptLenth; i++) { var name = xmlAddressResult[i].getElementsByTagName("PoiName")[0].innerHTML; option += "