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 9078705
In Process

The Archive Base Latest Questions

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

In my aspx page, I use xmlhttp.response to update a part of this page.

  • 0

In my aspx page, I use xmlhttp.response to update a part of this page. This update occurs in every 3 seconds using js function. But when my PC goes to sleep mode, this update doesn’t happen. This is OK. But when PC wake up from sleep mode, I need to start update automatically without reload this page. How to do this?

  • 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:41:30+00:00Added an answer on June 16, 2026 at 7:41 pm

    You can detect disruptions in the JS timeline (e.g. laptop sleep, alert windows that block JS excecution, debugger statements that open the debugger) by comparing change in wall time to expected timer delay. For example:

    var SAMPLE_RATE = 3000; // 3 seconds
    var lastSample = Date.now();
    function sample() {
      if (Date.now() - lastSample >= SAMPLE_RATE * 2) {
        // Code here will only run if the timer is delayed by more 2X the sample rate
        // (e.g. if the laptop sleeps for more than 3-6 seconds)
      }
      lastSample = Date.now();
      setTimeout(sample, SAMPLE_RATE);
    }
    
    sample();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using html button in .aspx page. but i want to use the
I want to use a datetimepicker in aspx page using cs codes.But i have
I'm trying to use jGrowl in an aspx page. But I encountered a problem
I'm having this issue when trying to use an ASPX page from a referenced
If I use this code on my aspx page: <asp:BulletedList ID=listClientContacts runat=server> <asp:ListItem><b>My Name</b></asp:ListItem>
I use following code for posting data to default2.aspx page. but when I trace
I have an aspx page which counts every visit and creates a cookie. But
i use asp.net and this code in aspx page: public partial class Default :
I use ths script in Default.aspx page. <script id=clientEventHandlersJS type=text/javascript> function Button1_onclick() { var
If we use an aspx page with a Caching Profile, the server caches images

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.