Log in

View Full Version : Loading html in iframe from different folder



bsquared0
08-24-2007, 11:37 PM
Hi All,
I am about to go mad on this. The problem seems simple: I use 6 or 7 topic directories on my site. Each has an index page (straight html) that is divided with menu on left, IFRAME for content in center, and iframe as pic viewer on right (all are in a table). onload a default topic is presented in the content viewer. Different selections are loaded from the menu.

Issue: this all works well but I have an html Web Site Map (found in Docs & Stuff on left sidebar) with no links to content. Why you say? Because I can't figure out how to call the html topic pages into the parent index page from a file outside of the directory of each of the topics. I have tried a LOT of link and target attributes to no avail. The index either comes up with the default topic or the topic I want to jump to is sitting out there in a new window by itself.

Help please. You can see the site at http://mcgymswim.com I have searched everywhere and even tried a couple of JS "fixes" but nothing does it. Perhaps I'm just dense.

Thank you for your consideration. - Bsquared

techno_race
08-27-2007, 12:20 AM
Try making the sitemap yourself. (gasp :p) :)

bsquared0
08-27-2007, 02:18 PM
Hi Techno,

That one is mine.

techno_race
08-27-2007, 05:44 PM
oh
why not use the same method you do for other docs?

bsquared0
08-28-2007, 03:48 AM
Well, that is what I'm trying to do, but cannot get it to work. I use 7 directories under the root (as defined by the topic bar at page top). The site map must call topics into the index page of each in turn. When I do a standard link it is to the index page of the topic directory, say ../about_us/index.html. The target can be different choices but it always loads either the default content into the iframe (in this case our_story) or if I try to jump to ../about_us/index.html/our_successes with the target as the iframe name, it still loads the default page in the iframe.

What's worse is when I try to target the _parent or whatever, it opens the topic in a blank window and is orphaned there. I guess links just aren't designed to go to a different directory and name the topic window that I want to load (into the iframe).

There must be a way to jump to a directory THEN load a variable passed from the point of the jump. This is my first web site and I don't have the knowledge for that though.

Thanks for your comments - Bsquared