If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Nov 2020
    Member #

    How to refresh a table on a website

    I am displaying the contents of a file (file1.txt) on a webpage.
    During the day at least two times I am snding new data to the file (file1.txt) at the web server..
    Can anyone tell me how to refresh the contents of the table with the updated data of file (file1.txt) every time I send the new data or maybe every minute?
    The table will be displayed constantly on PC's monitor ( I only want to be able to have it updated every time new data will be sent to file1.txt)


  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    758 times
    Multiple ways.

    It would be interesting to know what data you are sending periodically and how much data is being displayed.

    I would use PHP w/SQL for the database and AJAX (PHP with javascripting) to refresh the data on the screen.
    You would create an API (application programming interface) to accept data and trigger the update.

    But the very most simple way is to just put an auto refresh in your HTML.

    <meta http-equiv="refresh" content="30">

    The meta tag within <head> to do a page refresh, in this example is every 30 seconds.
    You could do 600 for 10 minutes.
    The browser clears and refreshes like loading a new page ... doesn't look very nice.

    Private message me with more info on what you are doing.
    I might be able to help you with a better method.
    Last edited by mlseim; Nov 20th, 2020 at 07:07 PM.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 10:59 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: