") + 7); } result = result.replace(/<(?!br\s*\/?)[^>]+>/g, "") alert('Error [' + exception + '] ' + jqXHR.status + ' - ' + result + ''); } }); } function getstates() { var data = {}; data["sCountry"] = $('#txtCountry').val(); data["sAccountID"] = $('#txtAccountID').val(); data["sSite"] = document.location.toString().toLowerCase(); data["sSES"] = $('#hdlSES').val(); $.ajax({ type: "POST", url: "drill.aspx/GetStates", data: JSON.stringify(data, null, " "), contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { $('#spanState').html(response.d); $('#spanCity').html(''); $('#spanAgency').html(''); if (lastlist != 'states') { lastlist = 'states' setTimeout(function(){ checkit(''); }, 100); } }, failure: function (response) { alert(response.d); }, error: function (jqXHR, exception) { var result = (jqXHR.responseText || ''); if (result.lastIndexOf("0) { result = result.substring(result.lastIndexOf("") + 7); } result = result.replace(/<(?!br\s*\/?)[^>]+>/g, "") alert('Error [' + exception + '] ' + jqXHR.status + ' - ' + result + ''); } }); } function getcities() { var data = {}; data["sCountry"] = $('#txtCountry').val(); data["sState"] = $('#txtState').val(); data["sAccountID"] = $('#txtAccountID').val(); data["sSite"] = document.location.toString().toLowerCase(); data["sSES"] = $('#hdlSES').val(); $.ajax({ type: "POST", url: "drill.aspx/GetCities", data: JSON.stringify(data, null, " "), contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { $('#spanCity').html(response.d); $('#spanAgency').html(''); if (lastlist != 'cities') { lastlist = 'cities' setTimeout(function(){ checkit(''); }, 100); } }, failure: function (response) { alert(response.d); }, error: function (jqXHR, exception) { var result = (jqXHR.responseText || ''); if (result.lastIndexOf("0) { result = result.substring(result.lastIndexOf("") + 7); } result = result.replace(/<(?!br\s*\/?)[^>]+>/g, "") alert('Error [' + exception + '] ' + jqXHR.status + ' - ' + result + ''); } }); } function getagencies() { var data = {}; data["sCountry"] = $('#txtCountry').val(); data["sState"] = $('#txtState').val(); data["sCity"] = $('#txtCity').val(); data["sAccountID"] = $('#txtAccountID').val(); data["sSite"] = document.location.toString().toLowerCase(); data["sSES"] = $('#hdlSES').val(); $.ajax({ type: "POST", url: "drill.aspx/GetAgencies", data: JSON.stringify(data, null, " "), contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { $('#spanAgency').html(response.d); if (lastlist != 'agencies') { lastlist = 'agencies' setTimeout(function(){ checkit(''); }, 100); } }, failure: function (response) { alert(response.d); }, error: function (jqXHR, exception) { var result = (jqXHR.responseText || ''); if (result.lastIndexOf("0) { result = result.substring(result.lastIndexOf("") + 7); } result = result.replace(/<(?!br\s*\/?)[^>]+>/g, "") alert('Error [' + exception + '] ' + jqXHR.status + ' - ' + result + ''); } }); }
www.p3tips.com
© 2026 All Rights Reserved