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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:53:26+00:00 2026-05-31T04:53:26+00:00

I did comprehensive Google research but I cannot find any good solution, so any

  • 0

I did comprehensive Google research but I cannot find any good solution, so any help (or just showing direction of next research) would by REALLY appreciated!

What I need is simple in idea, but looks like hard to implement:

I have data (say just picture) I want to show to all (even anonymous) users of website in the very same time. This data should change regularly (say once in 5 minutes), so the browsers of all users must refresh in given time.

The woflow is simple:

  • User will open page with countdown (which will show of course different time for each user depends of when the user has had connected).

  • At the end of countdown shall all browsers of connected users refresh to see new content.

  • The refresh should be ideally invoked by server to prevent prematured refresh when data doesn’t changed yet.

I was thinking of “refresh” meta tag, but it is problematic for SEO and it rely on user computer’s clock.

It can be done by javascript, but in that moment I rely on user computer’s clock.

I have hearded it is possible “push” data from server to browser using e.g. Perl, it is correct (is there somewhere some example)?

And in which scripting language would you write script which would “tick”. I cannot see way in PHP I am familiar with (use cron to execute counting script every minute looks really ugly)…

Thank you!

Michal

  • 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-31T04:53:28+00:00Added an answer on May 31, 2026 at 4:53 am

    It’s not possible to push data from a web server to a web brower, given the request-response architecture of HTTP. It is, however, possible to poll the webserver using JavaScript and window.setInterval(); combined with AJAX.

    If not using local system time is an issue, why not respond to periodic AJAX requests with the number of microseconds until the next reload of data should commence? I would suggest you use AJAX for all of this instead of refreshing the browser with META REFRESH, or window.location.

    The server-side code could be anything really, you simply need a page that will return the number of microseconds until the next schedule refresh (And perhaps an error if no refresh is scheduled yet, telling the client JavaScript to poll again in a few seconds).

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

Sidebar

Related Questions

Did anyone of you ever find a way of getting the Microsoft Report Viewer
Did you used Dynamic websites before? you see its a good way for making
Did anyone face a problem of putting buttons (or any other widgets) on the
I'm showing the code to this problem for example purposes, but really my question
did anybody know a good regex tester for javascript (i think there are differents
Did somebody tried to build Qt 4.5 with Visual Studio 2010 (Beta 2)? Any
I'm looking for some good comprehensive reading material on when JavaScript passes something by
did a search for this and didn't find an answer, so here goes... I
I did a search on similar topics, but the answers are too vague for
Did anybody know where one can find the documentation for the both sonartype plugins

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.