Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP