Specifications

Remote Control
48
AMX InspiredSignage XPress Programming Guide
The example below shows the configuration of the file to control the value of the variable 'menu' located on the
remote 192.168.1.10 host (FIG. 48).
It is also possible to use JavaScript directly to control the value of the shared variables. The sample code below
assumes that we want to control the content on 192.168.1.10 by clicking on a rectangle.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/
xml-events" viewBox="0 0 1280 720" viewport-fill="white">
<rect x="540" y="260" width="200" height="200" fill="blue">
<handler ev:event="click">
<![CDATA[
var v=createSharedVariable( "menu@192.168.1.10" );
v.set( "P1" );
]]>
</handler>
</rect></svg>
FIG. 48
Controlling the value of the variable