Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant HTML Errors #2

Open
kworsfold opened this issue Dec 25, 2023 · 1 comment
Open

Constant HTML Errors #2

kworsfold opened this issue Dec 25, 2023 · 1 comment

Comments

@kworsfold
Copy link

Hi, excellent article, thanks. However, there is one issue that I have found, that is the number of errors thrown up when debugging the HTML.
In the Function response(), in "get the xml stream" xmlResponse needs to be wrapped with if(this.responseXML != null){}

i.e.
// function to handle the response from the ESP
function response(){
var message;
var barwidth;
var xmlResponse;
var xmldoc;
var color = "#e8e8e8";

  // get the xml stream
  if(this.responseXML != null){


    xmlResponse = xmlHttp.responseXML;
    console.log(xmlResponse);

....
....
....
....
....

    }
  }   //  END If NULL

}
@majorgeneralarsalan
Copy link

Yes thus works and makes the HTTP Null error fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants