Forum Moderators: open
[webmasterworld.com...]
what do you do when "if you have multiple content pages and want the container page to reload the correct content page"?
im stumped on this and haven't found a sartisfactory anser yet!
In the orphaned content page, use a JavaScript to change the location.href if not within a frameset:
<script type="text/javascript">
if(top==self) {
top.location.href = "index.html?page=thisone";
}
</script>
...assuming the page with the iframe is called index.html. Then just use PHP (or some other server side scripting language) to set the iframe source, depending on the
page variable.
the pages i am using are
index.php (main page with iframe called FRAME1)
indextext.php (default content page)
parkhopper.php (content page i wish to load in and replace indextext.php)