×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    19

    Using timer without refreshing the page every interval

    Hi everybody,
    I want to use the timer on a webapp the inconvenience is that every interval (for me 1sec) the page is being refreshed
    That’s my code :

    Code:
    <script type="text/javascript">
    function timer(){
    console.log("Timer triggered");
    .
    .
    .
    }
    
    
    </script>
    
    <button  id="start" name="button1" class="ui-button" style="padding-left: 0px; " onclick="mwl.timer('timer', 1000, 0, 'timer()'); return false;"><h4>Start</h4></button>
    Is there any workaround ?

    Thanks in advance

  2. #2
    Regular Contributor
    Join Date
    Jun 2010
    Posts
    161

    Re: Using timer without refreshing the page every interval


  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,697

    Re: Using timer without refreshing the page every interval

    So the story is that the mwl.timer call stays on the client, but the timer() function goes to the proxy. Do not believe the description on http://developer.nokia.com/Resources...ods/timer.html, it is pretty misleading: "callFunc()" for both cases will run on the proxy, the difference is that "myRoutine()" induces an extra roundtrip even for starting the timer.

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    19

    Re: Using timer without refreshing the page every interval

    thanks for you're answer
    i was mistaking by the documentation when they said that we can use it in local

Similar Threads

  1. timer of 1 mini second interval
    By hushan in forum Symbian
    Replies: 3
    Last Post: 2010-10-31, 16:05
  2. How to create Async timer and update time interval dynamic?
    By yazoox in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2010-03-22, 07:54
  3. Replies: 6
    Last Post: 2009-11-04, 04:04
  4. When LCD is off I want my timer to stop refreshing my custom UI
    By thehappycoder in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-09, 07:36
  5. About the periodic timer interval in Graphics example
    By ThreeSixFiveOh in forum Symbian
    Replies: 0
    Last Post: 2003-11-17, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×