troubleshooting Question

Ajax on ASP

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
2 Comments1 Solution241 ViewsLast Modified:
Hi experts, I wish to put some alert where if the client cannot able to connect the data server, there will be a message to allow the client know that the server is busy or Server does not exist or access denied.. I am using mssql 7. I have no idea how hard or possible is this. any help please!

function showCustomer(str) {
  var xhttp;
  if (str == "") {
    document.getElementById("txtHint").innerHTML = "";
  xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
    document.getElementById("txtHint").innerHTML = this.responseText;
  };"GET", "getcustomer.asp?q="+str, true);
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros