I’m using jquery mobile on a raspberry pi with 7″ Touch display and chromium browser in kiosk mode.
I have serveral Buttons on my page
<button class="ui-btn" onclick="window.location.replace('index.html');">Seite neu laden</button>
<button class="ui-btn" onclick="system('reboot');">System neu starten</button>
<button class="ui-btn" onclick="system('shutdown');">System herunterfahren</button>
<button class="ui-btn" onclick="restart('zway');">Z-Way Server neu starten</button>
<button class="ui-btn" onclick="restart('homebridge');">Homebridge Server neu starten</button>
If i touch the first button the page will be reloaded, but if i touch the last button,
which should call a function, nothing happen.
If i replace the “onclick” (reload the page) from the first button with the “onclick” from the last button (call restart(‘homebridge’)), my function will be called and the homebridge-server will be restarted.
I dont really understand this behaviour. I also tried “ontouchstart” instead of “onclick”.
Do i miss something?