This is a migrated thread and some comments may be shown as answers.

Timer question

1 Answer 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Greg Duffield
Top achievements
Rank 1
Greg Duffield asked on 30 Sep 2013, 10:14 AM
Starting with an Icenium project in Visual Studio I just wanted to add a timer to the location screen to refresh the map every 60 seconds. However no matter where I put the timer it only fires once it seems that due to how the JS code is laid out/implemented the timer is going out of scope and so is only firing once when it is initialised/

What would be the right way to implement a timer on this tab ?

Thanks

Greg

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Sep 2013, 01:25 PM
Hi Greg,

The provided information is insufficient for us to determine what is wrong. Cordova (the base Icenium is build upon) does not have an event that would fire upon any action (compared to .NET's Page_Load for example), so the implementation is up to you. Are you using setTimeout, setInterval or anything else?

As this is not a question directly related to Icenium, it would be best to prepare a sample (http://jsbin.com/ or http://jsfiddle.net/) that exhibits the problem and post it here and to other community forums (e.g. stackoverflow) where other users can advise you.

Regards,
Steve
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Greg Duffield
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or