You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very nice component, I'm new for HTML coding.
I'm using radial gauge and linear gauge, and having difficulty to show my sensor value from arduino on "value" gauge using AJAX, here is my code to retrieve data value from arduino,
function GetArduinoInputs()
{
nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();
request.onreadystatechange = function()
{
if (this.readyState == 4) {
if (this.status == 200) {
if (this.responseXML != null) {
this.responseXML.getElementsByTagName('analog')[0].childNodes[0].nodeValue;
this.responseXML.getElementsByTagName('analog')[1].childNodes[0].nodeValue;
data_val = this.responseXML.getElementsByTagName('analog')[0].childNodes[0].nodeValue;
data_val2 = this.responseXML.getElementsByTagName('analog')[1].childNodes[0].nodeValue;
Hi,
Very nice component, I'm new for HTML coding.
I'm using radial gauge and linear gauge, and having difficulty to show my sensor value from arduino on "value" gauge using AJAX, here is my code to retrieve data value from arduino,
function GetArduinoInputs()
{
nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();
request.onreadystatechange = function()
{
if (this.readyState == 4) {
if (this.status == 200) {
if (this.responseXML != null) {
this.responseXML.getElementsByTagName('analog')[0].childNodes[0].nodeValue;
this.responseXML.getElementsByTagName('analog')[1].childNodes[0].nodeValue;
data_val = this.responseXML.getElementsByTagName('analog')[0].childNodes[0].nodeValue;
data_val2 = this.responseXML.getElementsByTagName('analog')[1].childNodes[0].nodeValue;
My point is to show sensor value to radial gauge and linear gauge which is "data_value" and "data_val2" . Any advice much appreciate it.
Many thanks
The text was updated successfully, but these errors were encountered: