Advertisement

09.17.2008 at 05:56AM PDT, ID: 23738293 | Points: 250
[x]
Attachment Details

Periodical server-side AJAX requests skipping seconds

Asked by mischacoster in Asynchronous Javascript and XML (AJAX), PHP Scripting Language, JavaScript Frameworks

Tags: ,

I am building an application using periodical AJAX calls to update a servertime countdown clock. This clock is used to display current and remaining time in a online bidding proces. I have to use server time because of security issues.

The problem is, that when the clock 'runs' (countdown from 03:00 minutes), the CPU load of the browser increases on the client. After some time (30 seconds) the clock will start to skip every 3rd second and so on.  If there is traffic (e.g. users are placing bids) this 'skipping' will become worse. The server-side script that is being called by AJAX does more than update the clock e.g. check for session validity, user inputs etc.

How can I have the server-side clock run at stable intervals without hick-ups using server time?

I have already experimented with the ajax.periodicalupdater veriables such as decay, frequency but no luck. Also upgraded to a faster server but no difference. I am using a VPS with PHP 5.2.5.Start Free Trial
 
Keywords: Periodical server-side AJAX requests…
 
Loading Advertisement...
 
[+][-]09.17.2008 at 08:58AM PDT, ID: 22500264

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 03:45AM PDT, ID: 22509437

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 07:54AM PDT, ID: 22511619

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 08:17AM PDT, ID: 22511893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.18.2008 at 08:48AM PDT, ID: 22512283

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628