2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-01 03:24:51 +00:00
fhem-mirror/fhem/www/pgm2/fhemweb_textField.js

22 lines
365 B
JavaScript
Raw Normal View History

function
FW_textFieldUpdateLine(d)
{
var name = "textField."+d[0];
el = document.getElementById(name);
if(el)
el.value = d[1];
}
function
textField_setText(el,cmd)
{
var v = el.value;
var req = new XMLHttpRequest();
req.open("GET", cmd.replace('%',v), true);
req.send(null);
}
FW_widgets['textField'] = {
updateLine:FW_textFieldUpdateLine
};