NetTalk Central

Author Topic: Timer stopped working  (Read 2338 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Timer stopped working
« on: July 06, 2020, 07:03:29 AM »
A customer notified me today that the timer (on a browse) doesn’t work any longer and I can confirm. Not sure when/in which version it stopped working, though. I’m currently using 11.37

Peter

Vinnie

  • Full Member
  • ***
  • Posts: 175
    • View Profile
    • Email
Re: Timer stopped working
« Reply #1 on: July 06, 2020, 10:09:32 AM »
I am using Nettalk 11.37 and Browse timer is working great.
Also the Session Timer in to Footer also resets great.

Maybe something else wrong.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Timer stopped working
« Reply #2 on: July 07, 2020, 12:00:37 AM »
>> A customer notified me today that the timer (on a browse) doesn’t work any longer and I can confirm.

please post an example Peter.
there are a number of options associated with the timer, so which ones you are using will matter.

Cheers
Bruce


peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Timer stopped working - RESOLVED
« Reply #3 on: July 07, 2020, 12:48:14 AM »
After Vinnie posted I took another look realizing that it must be something I did not see.

As it turns out the app was originally written in NT10 and recently moved to 11. In NT10 the second parameter on the timer setting ("Refresh") was being ignored if it wasn't filled. But NT11 'agressively' generates this code:

Quote
p_web.SetOption(loc:options,'timerRefresh','disabled')

So, by selecting the Refresh option First|Current|Last the timer is now working as expected.

Thank you.
Peter