IHM Télécommande
IHM de test
<map id="Map1" name="RemoteControl">
<area alt="Stop" shape="circle" coords="48,32,20" title="Stop"
href="javascript:Execute('/SendKey?command=178');" />
<area alt="Previous" shape="circle" coords="48,92,20" title="Previous"
href="javascript:Execute('/SendKey?command=177');" />
<area alt="Play" shape="circle" coords="162,46,26" title="Play"
href="javascript:Execute('/SendKey?command=179');" />
<area alt="Sleep" shape="circle" coords="272,32,20" title="Sleep"
href="javascript:Execute('/StandBy');" />
...
<area alt="CursorDown" shape="rect" coords="125,282,198,327" title="CursorDown"
href="javascript:Execute('/SendKey?command=40');" />
</map>
function Execute(serviceUri)
{
var proxy = null;
if (window.ActiveXObject)
proxy = new ActiveXObject("Microsoft.XMLHTTP");
else if (window.XMLHttpRequest)
proxy = new XMLHttpRequest("");
// POST to avoid Explorer Cache Problem
proxy.open('POST', window.document.getElementById("txtServiceURL").value + serviceUri, false);
proxy.send(null);
window.document.getElementById("divStatus").innerHTML = proxy.status;
window.document.getElementById("divStatusText").innerHTML = proxy.statusText;
window.document.getElementById("divResponse").innerHTML = proxy.responseText;
}