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

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

  • Please log in to reply



    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:

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

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

<i>Song Currently Playing on Musicmatch Jukebox:</i><br>
$file_content = fread($handle, filesize($file)); 
echo $file_content;

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!


Cozy in Cardiff
  • 0


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(), .


1- HTML <div> refresh

2- Refresh Portion Of Your Web Page Using XMLHTTP


  • 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