Kann mir jemand sagen, warum das nicht funktioniert?
Ich kann die Variable nur einschalten. Die Anweisung webdisplay hat keine Auswirkung.
---------------------------------------------------------
[WebServer]
button(1)[SWITCH]$Licht Simulation$
[EibPC]
Licht_Sim=EIN;
if webbutton(1)==1 then {
if (Licht_Sim==EIN) then {
Licht_Sim=AUS;
webdisplay(1,$AUS$,SWITCH,INACTIVE,GREY);
} else {
Licht_Sim=EIN;
webdisplay(1,$EIN$,SWITCH,ACTIVE,GREY);
} endif;
} endif
--------------------------------------------------------
Grüße
Alfred
Ich kann die Variable nur einschalten. Die Anweisung webdisplay hat keine Auswirkung.
---------------------------------------------------------
[WebServer]
button(1)[SWITCH]$Licht Simulation$
[EibPC]
Licht_Sim=EIN;
if webbutton(1)==1 then {
if (Licht_Sim==EIN) then {
Licht_Sim=AUS;
webdisplay(1,$AUS$,SWITCH,INACTIVE,GREY);
} else {
Licht_Sim=EIN;
webdisplay(1,$EIN$,SWITCH,ACTIVE,GREY);
} endif;
} endif
--------------------------------------------------------
Grüße
Alfred
Kommentar