Jump to content

Timers shown on pages


cliftonbazaar

Recommended Posts

The way that results in the minimum server load is if a page is requested that has a time limit on it, the page that is output contains a javascript count down timer and it is given the current time remaining to count down from. If the page is refreshed or otherwise requested again, the current time remaining is given to the javascript count down code for it to count down from. If the page is requested with zero time remaining (determined on the server) the normal page is output without the count down code used to display the time remaining. When the javascript count down timer reaches zero (plus a small amount (1-2 seconds) to account for timebase differences between the client and the server), it can make a http request to request the page and since the time remaining (determined on the server) is now zero, the normal page is output without the count down code used to display the time remaining.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.