Using iframes
to optimize anything is counter-productive like @Dagon says. It takes a longer time to re-render the window on a full refresh than to load content in via AJAX
What you would actually want to do is have markup like this:
<div id="container">
<button id="updatePane" value="Update" />
<div id="changeMe">
Some content on load
</div>
</div>
You'd want different elements like changeMe
to replace each iframe.
Then you can use AJAX
, most likely with a library like jQuery, to load content into changeMe
and other DIV
s. This way you are going to your server, getting the least amount of information possible, without actually refreshing the window.
EDIT:
And also since I see you are using PHP
you can actually do something like:
<div id="container">
<button id="updatePane" value="Update" />
<div id="users">
<?php include("users.php"); ?>
</div>
</div>