Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

How to refresh only a portion of a webpage without using frames


  • Please log in to reply

#1
realm174

realm174

    New Member

  • Member
  • Pip
  • 2 posts
Howdy friends!

I have a little bit of an issue, and google didn't come to the rescue this time :tazz: I have a webpage that needs a partial refresh... let me demonstrate and try to make it clearer... Here's the current html for it:

<html>
<head>
  <meta http-equiv="refresh" content="120">
</head>
<body bgcolor="#e6d8e5">

<center><img src="/images/panacam.jpg"></center>

<i>Song Currently Playing on Musicmatch Jukebox:</i><br>
<?php
$file="../../whatson.txt";
$handle=fopen($file,"rt");
$file_content = fread($handle, filesize($file)); 
fclose($handle);
echo $file_content;
?>
</body>

As you can see, currently, it is reloading the entire page. What I need to refresh every 2 minutes is the php portion of the page. I don't think it's really a php issue, but I've been trying to figure out if there's an html way of reloading only that portion.

Any help will be very appreciated!

thanks!

realm174
Cozy in Cardiff
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Check out:

You can refresh a particular portion of an HTML page without refreshing the entire page, If you are using XMLHTTP; Call a function with setTimeOut(), .


at

1- HTML <div> refresh

2- Refresh Portion Of Your Web Page Using XMLHTTP

HTH

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP