From 4bf1a1ba90917a49e4ca15cccdea92de30e79201 Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Tue, 28 Jan 2014 18:44:31 +0100 Subject: Added some switches --- index.html | 161 +++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 115 insertions(+), 46 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 737ed7f..77f7df0 100644 --- a/index.html +++ b/index.html @@ -2712,8 +2712,10 @@ function LoadTimers() { function LoadTimersServer() { -//Get timers from SmartTVweb try { + + if (testing4==1) { + //Get timers from SmartTVweb xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET",(server_ip + recServ + "/timers.xml?" + new Date().getTime()),false); xmlhttp.send(); @@ -2750,7 +2752,40 @@ try { timers[i] = timers[i] + timersDays[i] + "\uE003" + timersStrt[i] + "\uE003" + timersStop[i] + "\uE003" + Left(timersName[i],8) + "\uE003" + Left(timersFile[i],15) + "\n" ; timerOK = 1; } + } else { + xmlhttp=new XMLHttpRequest(); + xmlhttp.open("GET",(RestFulAPI + "/timers.xml"),false); // ?" + new Date().getTime()),false); + xmlhttp.send(); + xmlDoc=xmlhttp.responseXML; + var x=xmlDoc.getElementsByTagName("timer"); + maxTimers = x.length; + for (var i=0;i