﻿
             /**加载地区列表
             *      
             * 方法 1 ：创建对象
             */
             var xmlHttp3;
            function createXMLHttpRequest3() {
              if (window.ActiveXObject) {
                xmlHttp3 = new ActiveXObject("Microsoft.XMLHTTP");
              }
              else if (window.XMLHttpRequest) {
                xmlHttp3 = new XMLHttpRequest();
              }
            }

            /**
             * 方法 2 ：事件处理方法
             */
            function Borough(place_Id){
             // alert("1");
              //创建对象
              createXMLHttpRequest3();
              // 构造地址
              var url="Ashx/BoroughList.ashx?place_Id="+place_Id+"&dateTime="+new Date().getTime()+"";
             // alert("2");
              //提交给服务器
              xmlHttp3.open("GET",url,true);
              xmlHttp3.onreadystatechange=callback3;
              xmlHttp3.send(null);
            }

            /**
             * 方法 callback2 ：响应
             */
            function callback3(){
              if(xmlHttp3.readyState==4){
               // alert("4");
              //  alert(xmlHttp3.status);
                if(xmlHttp3.status==200){
                // alert("ok");
                  document.getElementById("BoroughList").innerHTML=xmlHttp3.responseText;
                }
              }
            }
