First and foremost, i love Domoticz and i specially love the community around this epic system.
I have been lurking on the forums for a while, but never needed to register. But the time has come that a question rised:
I have created a custom html page that exactly fits the tablet that i have mounted to the wall. Within this HTML file, i would like to use the JSON URL's to toggle scenes on and off. Right now, i have created a page with two sections (for horizontal scrolling) that contain several buttons as well as the weather forecast and a block that shows the actual IP-cam footage to see who's at my door (jpeg that refreshes every 2 seconds).
screenshot:

The issue i have is with the JSON toggles. They do work, but the problem is that the hyperlink takes me to the JSON output page. What i would like to see is that i just toggles the switch, and does not take me to the status page.
Can someone point me into the right direction? here's a section of my code snippet that shows the toggle button of one of the scenes:
Code: Select all
<div id="button">
<a href="http://domotica.pb67.lan:8080/json.htm?type=command¶m=switchscene&idx=1&switchcmd=on"><img src="eettafel.jpg"></img></a>
</div>
Cheers!
Sjoerd