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 allow users to enter a regular expression to match IP addresses, for doing
When doing small icons, header graphics and the like for websites, is it better
When doing TDD , how to tell that's enough tests for this class /
I doing a function in Javascript like the VisualBasic DateDiff. You give two dates
I want to convert a string into a double and after doing some math
I'm doing some really simple math and saving the result to a MS SQL2008
Doing odd/even styling with jQuery is pretty easy: $(function() { $(.oddeven tbody tr:odd).addClass(odd); $(.oddeven
When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field)
When doing case-insensitive comparisons, is it more efficient to convert the string to upper
When doing a cvs update , you get a nice summary of the state

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.