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 find myself doing this repeatedy. $jq(button).filter(function(){ return this.id.match(/^user_(\d+)_edit$/); }).click(function(){ var matches = this.id.match(/^user_(\d+)_edit$/);
I'm doing a pattern match in a piece of code that works fine in
I was wondering if I'm doing the following ASP.NET C# regexp match in the
Doing the below will reproduce my problem: New WPF Project Add ListView Name the
Doing my first tryouts with foreign keys in a mySQL database and are trying
What I'm doing I'm pulling an image from the database and sending it to
[I am doing this work in Java, but I think the question is language-agnostic.]
I don't see any options for doing anything other than an exact match...
I want to develop an android application, that displays live cricket scores as well
Let me preface this by saying I am extremely new to git but have

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.