Forum Moderators: open
I am trying to find a solution for the following problem:
1 I have a web page (e.g. page1) whose varying content (e.g. content1) is opened inside an iframe. The bulk of the page stays the same but the content in the iframe is always different.
2 I am building a site map.
3 In the sitemap, when I click on the page1 link, it pops up with the default (content1) in the iframe. So far so good.
4 When I call content2 from the site map, it should replace content1 in the iframe of page1 but it pops up as a separate page without page1 surrounding it.
Does this explanation make sense? Is there any way to call the content2 page so it pops up inside the iframe of page1?
Thanks a lot,
Ed
<iframe src="first_page.html" name="littleContent" width="300 height="300">
<a href="second_page.html" target="littleContent">This should work too</a>. I think.
FRAMESET
<frameset rows=*100,*">
<frame src="site_map.html" name="sitemap">
<frame src="child1.html" name="main_frame">
</frameset>
Child1.html loads in the main frame.
SITE MAP
Here are the links you find in site_map.html, loaded in the top frame:
<a href="child1.html" target="main_frame">Child 1</a>
<a href="child2.html" target="main_frame">Child 2</a>
You should not need anything else; while this is frames - iframes are exactly the same. You name the target frame and target links to pages in it.
If I'm not getting the problem correctly, keep trying, there are psychic coders here but they don't seem to know when to show up. :D