Forum Moderators: open

Message Too Old, No Replies

site map problem

         

maitre

8:42 pm on Jan 5, 2005 (gmt 0)

10+ Year Member



Hi,

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

adni18

12:49 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are using javascript, use the following code:

window.frames['littleContent'].location="879373987.html";

maitre

2:22 am on Jan 6, 2005 (gmt 0)

10+ Year Member



Thanks,

I'm not sure that I can make head or tail of your answer but I'll try.

Ed

rocknbil

2:37 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



He is saying to target the iframe with your next document. I don't use iframes but they are very similar to frames, so forgive me if my syntax here is incorrect.

<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.

maitre

9:33 pm on Jan 7, 2005 (gmt 0)

10+ Year Member



Thanks a lot guys.

I've tried your suggestions and I'm sure that they are correct but I can't get it to work. My JS knowledge is next to zero.

Ed

rocknbil

3:26 am on Jan 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Post some code. :-)

maitre

6:15 pm on Jan 9, 2005 (gmt 0)

10+ Year Member



Okay, here's the link that I am trying to use:

['parent.htm/child.htm target=iframe1']

parent.htm is the page that contains iframe1, child.htm is the content of iframe1. The link above is supposed to call the parent page and the child page in the iframe. I'm certain that my syntax is all wrong.

rocknbil

3:32 am on Jan 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know why you have square brackets, do you REQUIRE Javascript? Here:

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

maitre

5:02 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



I am trying to use the free TIGRA tree menu for the sitemap and I have to conform to their syntax, here's an example:

['Content2', 'parent.htm src=content2.htm target=iframe1'],

Hope it makes sense.