View Full Version : Question about links & I-frames
logand
January 27th, 2006, 02:16 PM
I know this is mostly a flash forum, but I have a question dealing with dreamweaver. Ok...I have a sitemap page and on that page has all the links inside of my site. The problem is that I'm using I-frames. So say "page 1" automatically loads "subsection 1" into the iframe and the subsections are "subsection 1" and "subsection 2". Does anybody know how I can load "page 1" and "subsection2" automatically from a link in sitemap?
antizip
January 27th, 2006, 04:14 PM
color me lost ... i think you're talkin bout the target but I'm not sure ...
Seb Hughes
January 27th, 2006, 04:26 PM
Iframe == The Devil
antizip
January 27th, 2006, 05:50 PM
Ooh Ooh i think i get it ... You'll have to use some server side scripting.
Page 1:
...
<?php
$page = ($_GET["page"]==''?'subsection1.htm':$_GET["page"]) . '.htm';
?>
<iframe src="<?=$page?>"> You cannot view inline frames </iframe>
...
Sitemap
...
<a href="page1.php?page=subsection1">Page1: Subsection1</a>
<a href="page1.php?page=subsection2">Page1: Subsection2</a>
...
The php creates a dynamic page reference so you can put anything you want by assigning it into the variable page and passing it in the url. This is assuming you have php installed and working.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.