mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
db7f36a612
git-svn-id: https://svn.fhem.de/fhem/trunk@5012 2b470e98-0d58-463d-a4d8-8e2adae1ed80
22 lines
365 B
JavaScript
22 lines
365 B
JavaScript
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
|
|
};
|