• I want to show a piece of content from another website so that it keeps updating in real-time on my WordPress website.

    For e.g. I write about web hosts and take data of the server speed and uptime from other websites.

    How can I make sure that let’s say, the below line keeps updating automatically:

    “The server response time of XYZ is [updates automatically]125ms[/updates automatically]”

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • YOu would need to be able to read in a data feed (most likely RSS, but could be something else) from the other website/s, processit in your system and display it in on your site.

    You will need to ask the site that you want to get the data from what’s available, and for their permission to use it on your site.

    Moderator bcworkz

    (@bcworkz)

    For data on a page to be constantly updated, it needs to be driven by JavaScript if you want to avoid having the entire page reload. The script can request new data at regular intervals and update the pertinent elements on the page. Deciding the update frequency is critical. You at least need a long enough interval to allow time to fetch and display the data. Very frequent queries can add up to a lot of data volume on the target server, especially when there could be dozens, or hundreds of pages open at the same time making regular requests. The update frequency should be as long as practical without diminishing its usefulness.

    Many services which allow automated data queries have rate limits, or charge a fee based on volume. You’ll need to factor in such limitations when determining an optimal interval.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic text content from another website’ is closed to new replies.