0
I’m developing a web server in PLC, in which you’ll be able to take the data from an air hose to see if the pressure is okay. I developed the code in js and set a value to see if it worked, but now I want to take the value of this pressure and if it reaches a certain number, it goes to the page in question
follows the code
$('#bot).on('
click ',function(){
})
var i = 0;
setInterval(function() {
$('counter').text(i);
i++;
if (i == 6) {
$('#pag-1).show();
$('pag-2).hide();
}
}, 1000)
in the var i
, you know what function I use to pull the data from a particular location?
When you say "pull the data from a given location" would it be to pull the value of an input (form field)? If yes, just use the following var i = $('#idCampo'). val();
– Leandro
this, however the values are being pulled from a program in real time, in the case of id field I would have to set a value for when the program arrived at it, identify?
– Felipe Deolindo
Yes, the field in question from where it will pull would have to have an id.
– Leandro
long, thank you
– Felipe Deolindo