nested frames, or should I be using tables?

K

kenbo

good day, I am working on a site at http://www.boyerkenney.com/eagleperch06/
that I developed using frames. I read about the evils of frames in the
discussion groups, but used them to hold the slideshow in the right pane.

my goal is to have the user click on a menu item, and then I would replace
the header and text/pic on the left with the new info. since I am using
frames, my thought was to create a frameset with a replacement header and
text frame, and pull that in. in some cases I would need to replace both the
left and right panes with a single pane.

should this work? it isn't yet, hence this post. am I taking an
unnessarily difficult path. and I have not played with tables in FP03, should
I here?

thanks, kenbo
 
T

Trevor L.

kenbo said:
good day, I am working on a site at
http://www.boyerkenney.com/eagleperch06/ that I developed using
frames. I read about the evils of frames in the discussion groups,
but used them to hold the slideshow in the right pane.

my goal is to have the user click on a menu item, and then I would
replace the header and text/pic on the left with the new info. since
I am using frames, my thought was to create a frameset with a
replacement header and text frame, and pull that in. in some cases I
would need to replace both the left and right panes with a single
pane.

should this work? it isn't yet, hence this post. am I taking an
unnessarily difficult path. and I have not played with tables in
FP03, should I here?

thanks, kenbo

I have used an iframe for news. See http://tandcl.homemail.com.au/ and click
on Open/Close News of this Site

The code is
<button onclick="loadIframe('News','news.html')">Open/Close News of this
Site</button>
<iframe class="c1" id="News" src=""></iframe>
where
..c1 {
display: none;
height: 200px;
width: 400px;
overflow: auto;
}
and where
function loadIframe(id,sPath)
{
var x = document.getElementById(id)
if (x.style.display != 'block')
{ x.src = sPath
x.style.display = 'block'}
else
x.style.display = 'none'
}

news.html contains the text to be displayed. (It also calls another function
which suppresses the display of old news.)

You could possibly modify this approach to suit what you want (e.g. don't
hide the iframe, but load different html files into it via your menu).

But you may also be better off using tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top