we've tested your button, and everything works as expected for us.
If we click "A", state is set to ON without showing a message
If we click "B", state is set to OFF without showing a message
If we click "C", the state TOGGLES and a message is displayed.
Some notes that may help to find the error:
- don't be confused about the message shown. It is NOT updated if you use directly. If you want a message in this case, use
- make sure NOT to use a target when using the onclick handler (unless you REALLY know what you are doing) - eg. the command <button target="stopAfterEachTrack" onclick="player.stopAfterEachTrack=true;"> will always set the state to false (as the target is exectuted after onclick)!
Best regards,
Your Silverjuke-TeamStatistics: Posted by Service-Team — 6. Jan 09, 23:39
]]>