ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Label not updating

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Label not updating

Hello!
What code you use for update?

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Label not updating

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);
}

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Label not updating

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

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Label not updating

Thanks its working now

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

Label not updating

Thanks Maryna :)

Return to “Issues”