![]() |
Log value into console that is placed in HTML
Hi
I am using NodeJS to create a server that brings in serial data. The serial data is successfully showing in the HTML; however, I would like to create a 'var' that can hold the data. Please can someone help? Here is my index.html page: Code:
Code:
|
I don't know anything about nodeJS, but this is the bit that shows your data in the html:
Code:
element.innerHTML = data.value;Code:
var mydata=[];Code:
mydata.push(data.value)Code:
var mydata="";Code:
mydata+=data.value;Code:
var mydata;Code:
mydata=data.value; |
| All times are GMT +1. The time now is 09:56 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.