Page 1 of 1

Label not updating

Posted: Tue Feb 25, 2014 7:34 am
by ishani modi

Hi,

I have used HTML component, inside it I have take 1 label.
I am updating label every 2 seconds.
it is working fine in Mozilla browser, but in my android device it is not updating values and i have written update every 2 secs code in JS file.

Thanks,
Ishani.


Label not updating

Posted: Tue Feb 25, 2014 7:48 am
by Maryna Brodina

Hello!
What code you use for update?


Label not updating

Posted: Tue Feb 25, 2014 7:56 am
by ishani modi

function stopwatchTiming(h,m,s) {
hour = h; min = m; sec = s;
sec = sec + 1;
if (sec == 60) { sec = 0; min = min + 1; } else { min = min; }
if (min == 60) { min = 0; hour = hour + 1; }
var timevalue = hour + " : " + min + " : " + sec;
$("#labelTimerValue")[0].innerHTML = timevalue;
window.setTimeout("stopwatchTiming("+hour+","+min+","+sec+");", 1000);
}


Label not updating

Posted: Tue Feb 25, 2014 1:26 pm
by Maryna Brodina

Do you use standard Label component?
In this case instead pre$("#labelTimerValue")[0].innerHTML = timevalue/pretry preAppery("labelName").text(timevalue)/prewhere labelName - label name


Label not updating

Posted: Wed Feb 26, 2014 6:39 am
by ishani modi

Thanks its working now


Label not updating

Posted: Wed Feb 26, 2014 12:33 pm
by ishani modi

Thanks Maryna :)