In article <f7**************************@posting.google.com >,
ta*****@yahoo.com enlightened us with...
I'm attempting to code a page that uses frames.
I hope this is not for general internet use. Frames have all kinds of
problems for general internet use that require a great deal of coding to work
around, much of which needs to be server-side scripting. Search engine
problems, printing problems, bookmarking problems...
For some of the links in the left hand pane I need to change both the
left hand AND right hand panes. I need the TOC to switch to a Sub-TOC
and I need the data frame to show the initial page of the Sub-TOC
group.
How can I code it to get this effect?
Javascript.
Which is not recommended for general internet use if it effects usability.
Which this would.
That said...
<script type="text/javascript">
function myNav(leftUrl, rightUrl)
{
top.frames['rightFrameName'].location.href = rightUrl;
top.frames['leftFrameName'].location.href = leftUrl;
}
</script>
<a href="someOtherPageThatDoesntNeedScript.html" onClick="my_nav
('leftUrl.html','rightUrl.html');return false;>link text</a>
Now, what I'd actually do is put that script in a frame whose contents never
change (or in the actual frameset) and call it from the left frame, just so
nothing head-butts when the location changes...
Frames have a place, but that place is CD and intranet apps where you have
full control of the environment and issues such as search engines and
bookmarking just don't come up. They really are very outdated for the web.
(this group is internet focused, therefore the 'www' in the name)
--
--
~kaeli~
Reading while sunbathing makes you well red.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace