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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:05:32+00:00 2026-05-17T16:05:32+00:00

I am doing a match live timing where an administrator sends to a database

  • 0

I am doing a match “live timing” where an administrator sends to a database new inputs like: “Team A scores! 1-0”. This is shown in a public website inside a <div /> and I want to get the new inputs and print it. I’ve never done something similar and I don’t know what is the way to go.

I also have some doubts:

  1. It’s posible that the server sends the content to a X browser? So do the browser will only be on “idle”?
  2. It’s possible to only refresh when the user is active on the browser? Like Facebook does, if you’re not present on the browser or moving your mouse over you don’t get updates.
  3. It’s possible to append only to the <div /> the new items and not refresh all of it?

Thank you in advance!

  • 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-05-17T16:05:32+00:00Added an answer on May 17, 2026 at 4:05 pm

    You can use the ajax methods like this one:

    $.getJSON('ajax/test.json', function(data) {
    
      $('.result').html($('.result').html()+'<p>' + data.foo + '</p>'
        + '<p>' + data.baz[1] + '</p>');
    });
    

    or:

    $.ajax({ url: "test.html", context: document.body, success: function(){
    

    …………………………………
    }});

    With a setTimeout call:

    (function() {
      $(document).ready(function() {update();});
    
      function update() { 
      $.getJSON(.................);
        setTimeout(update, 3000);     }
      }
    )();
    

    Then you could bind a mouseover event to the div that wraps your web, that would force an ajax call. You should use a control variable to know when the call is processing, so no to duplicate it.

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

Sidebar

Related Questions

I would like to remove/delete a migration file. How would I go about doing
I'm doing some changes on my routes, and suddenly the following is appearing in
I've found several jQuery syntaxes for nullifying the enter on a form. First one:
I am playing with TFS 2010, and am trying to setup a build process
I know its probably possible, but is it practical and doable to try and
I know its probably possible, but is it practical and doable to try and

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.