To bad that customization is not supported. This stuff isn't easy for a average joe like me. I'm not quite sure what I did exactly when I added more boxes. I changed one
thing in the drawrelay() function (as you pointed out in your replay). Have been fiddeling with the doclick() function aswell but got stuck.
function drawRelay(){
var el
var ioname; // replace space with " "
var value = RELAY[9] // Internal Relay #129 to 140
for (i=0;i<14;i++) { //-------------------------I changed this line
el = document.getElementById("IO"+(i+1))
if (el==null) {
ioname=""
for (j=0;j<IOname.length;j++) {
ch=IOname.charAt(j)
if (ch==' ') ioname += " "
else ioname += ch
}
function doClick(el) {
var xmlhttpClick= createXMLhttp()
clickBusy =1
clearInterval(intervalID);
if ((el.id).substring(0,2)=="IO") {
var rly = RELAY[9]
var pos = el.id.substring(2)-1
rly ^= bitMask[pos] // toggles bit
cmd="HOSTLINK/WR10"+d2h(rly)+timestamp()
clearInterval(intervalID);
xmlhttpClick.open("GET",cmd,true);
try {
xmlhttpClick.onreadystatechange=function() {
if (xmlhttpClick.readyState==4) {
checkSvrResp(xmlhttpClick,"doClick")
clickBusy=0
doUpdate()
getRelay()
Is Relay[9] the same as relay channel 10, as in cmd="HOSTLINK/WR10"+d2h(rly)+timestamp()
Repeat code? Please explain.