Sorry, you need to enable JavaScript to visit this website.

octo

Office of the Chief Technology Officer
 

DC Agency Top Menu

-A +A
Bookmark and Share

Use the MAR Web Data Service in Client Script

var xmlHttpObj;
if (window.ActiveXObject)
    {
        try
        {
           xmlHttpObj= new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e)
        {
           xmlHttpObj= new ActiveXObject("Msxml2.XMLHTTP");
        }
    }
    else
        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("Content-Type","application/x-www-form-urlencoded");
  xmlHttpObj.setRequestHeader("SOAPAction", "str");
  // Execute the request       
  xmlHttpObj.send("str="+ strLocation);
}