NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on July 06, 2020, 07:03:29 AM

Title: Timer stopped working
Post by: peterH 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
Title: Re: Timer stopped working
Post by: Vinnie 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.
Title: Re: Timer stopped working
Post by: Bruce 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

Title: Re: Timer stopped working - RESOLVED
Post by: peterH 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