Timer question

2 posts, 0 answers
  1. Greg Duffield
    Greg Duffield avatar
    38 posts
    Member since:
    Feb 2006

    Posted 30 Sep 2013 Link to this post

    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 ?


  2. Steve
    Steve avatar
    10940 posts

    Posted 30 Sep 2013 Link to this post

    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.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top