JSFiddle - React, Tailwind, and code Playground

by fenderistic

JavaScript

var strURL = "http://devwebservices.sandhills.int/AddressValidation/AddressValidation.asmx/ActiveCountries?";
$.ajax({
    type: "GET",
    async: false,
    url: strURL,
    contentType: "application/json; charset=utf-8",
    datatype: "json",
    success: function(msg) {
        debugger;
        for (var i = 0; i < xmlDoc.getElementsByTagName("Country").length; i++) {
            var strTemp = xmlDoc.getElementsByTagName("Country")[i].firstChild.data;
            _arrCountries[i] = strTemp.toUpperCase();
        }
    },
    error: function(response) {
        alert("Broke");
        _arrCountries = ErrorTable(xmlDoc, _arrCountries, "The Web Service has experienced an error.  A list of Active Countries could not be found.");
    }
});