Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9078319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:35:26+00:00 2026-06-16T19:35:26+00:00

I have a simple JS timer which runs every 10 seconds and should send

  • 0

I have a simple JS timer which runs every 10 seconds and should send an AJAX request. The problem is that on some windows XP machines this task stops running – no AJAX request is sent. It seems to run successfully for 45 minutes and then stop for a random amount of time, then start and run successfully for another 45 minutes…my question is what could be causing this to happen? Could some service/scheduled task running on the PC stop javascript timers from working?

Ext.onReady(function(){

    var task = {
        run: function(){
            Ext.Ajax.request({
                url: 'test.php'
            });
        },
        interval: 10000
    };
    Ext.TaskManager.start(task);    

});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:35:27+00:00Added an answer on June 16, 2026 at 7:35 pm

    Couple of suggestions:

    1. Try to switch from Ext.TaskManager to a normal setInterval. If that fixes the problem there’s probably a bug in Task Manager.

    2. If it doesn’t work then try the following:

      • Keep using intervals. Record the id of the interval. Also record the time of last execution.

      • Start another timer with setInterval and larger interval, say 1 minute. Inside the callback check for the last execution time.

      • If it was long ago (> 30 seconds), call clearInterval with the id that you stored and restart the task interval.

    3. If that doesn’t work try executing these polling tasks in a separate <iframe>. A browser can skip calling Interval and Timeout callbacks if it’s busy with other tasks. By putting them into a separate <iframe> you give them a dedicated event loop, so that other tasks won’t interfere with them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some javascript which runs a timer that animates something on the website.
I have a simple problem that I've been stuck on for some time and
Suppose we have a timer which runs every 10 minutes. What if the cycle
So I have a very simple android activity that starts a timer when you
I have developed a simple server using Tomcat which runs a servlet. The servlet
Can anyone advise? I have a job which runs on the hour, every hour,
I have a very simple Nodejs app which runs on port 6647. I also
I am making a simple timer app. I have a uitable with multiple rows.
I have created a very simple sharepoint timer job. All i want it to
I have a simple quiz application and I want display a nice timer /

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.