Office of the Chief Technology Officer

DC Agency Top Menu

Heat Emergency: A heat emergency is in effect for the District of Columbia. Find information on cooling centers.

Find a COVID Center Near You

-A +A
Bookmark and Share

Use the MAR Web Data Service in Client Script

var xmlHttpObj;
if (window.ActiveXObject)
           xmlHttpObj= new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e)
           xmlHttpObj= new ActiveXObject("Msxml2.XMLHTTP");
        xmlHttpObj= new XMLHttpRequest();

if (xmlHttpObj) {
  // We want this request asynchronous
  xmlHttpObj.open("POST","http://citizenatlas.dc.gov/newwebservices/locationverifier.asmx/findLocation", true);
  xmlHttpObj.onreadystatechange = function()
if ( xmlHttpObj.readyState == READYSTATE_COMPLETE )
if(xmlHttpObj.status == HTTPSTATUS_OK)
                    //add your processing here
                    var doc = xmlHttpObj.responseXML;

  xmlHttpObj.setRequestHeader("SOAPAction", "str");
  // Execute the request       
  xmlHttpObj.send("str="+ strLocation);