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

  • Home
  • SEARCH
  • 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 4078452
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:40:34+00:00 2026-05-20T17:40:34+00:00

I am looking for the best approach to update a website with live data

  • 0

I am looking for the best approach to update a website with live data every 10 minutes. I have been looking on the net, but cant really find a sample.

This is just a hypothetical situation for me. If I want to get live data from somebody and put it in my website what would the best way to do it?

An easy example is a sports score website that gets the scores data from some where else that provides live sports scores and your site displays live sports score changes.

  • 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-20T17:40:34+00:00Added an answer on May 20, 2026 at 5:40 pm

    In JavaScript, you can probably do something like this (it’s untested), but every 10 minutes you do a HEAD-request against the server, if the content of the XML-file is modified do a GET-request and process the data.

    (function loop(){
        setTimeout(function(){
            $.ajax({
                type: "HEAD",
                url: "/whatever"
                success: function(xhr, data){
                    if(xhr.status === 304) {
                        loop();
                    }
                    else {
                        $.ajax({
                            type: "GET",
                            url: "/whatever",
                            success: function(data){
                                // Process XML
    
                                // Run this function again.
                                loop();
                            }
                        });
                    }
                }
            })
        // Run this every 10 min.
        }, 600000);
    })();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for the best approach to getting an XML document from a JDBC
I'm looking for best practices for using the same data in different places without
I'm looking for the best way to log errors in an ASP.NET application. I
I am looking at the best approach to add rich functionality to an existing
I'm looking for some advice on the best approach to synchronising access to properties
I am looking for best practices for detecting and preventing DOS in the service
I'm looking for best practices for establishing connections between Oracle 8 and Visual Studio
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main
I am looking for best practices in regards to printing from a WinForms application.
I'm looking for best-practices for designing a site that with accessibility in mind. The

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.