|
Posted by dorayme on 06/20/07 00:06
In article
<1182266475.510778.33370@e9g2000prf.googlegroups.com>,
Chaddy2222 <spamlovermailbox-sicurity@yahoo.com.au> wrote:
> navin wrote:
> > the page i have created contains 3 frames. frame in left contains the
> > navigation links and i want to update the frame in center with the
> > content of the link when clicked.
> >
> > However, whenever i click on the link, the content opens up in both
> > of the left and center frame instead of the center frame.
> >
> >
> > Below html code is what i am using:
> Don't post code, post a URL! Or better still read,
> http://freewebdesign.awardspace.biz/wdto/old/why-frames-are-bad.php
As Chaddy says, you should post a url. And probably not use
frames.
But I am nostaligic and no one ever seems to ask about them.
You need to ensure that the file that sits behind the left frame
in which you are clicking the link that you want to appear to
your right, that you use target="theNameOfTheRightFrame".
(You are going to have some other trouble with your code for
other reasons, use a validator to check up on what attributes are
kosher.)
Something like this (simplified) should work:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Shelta Australia</title>
</head>
<frameset rows="64,*">
<frame name="banner" src="top.html" frameborder="1">
<frameset cols="188,*">
<frame name="contents" src="left.html" frameborder="1">
<frame name="main" src="right.html" frameborder="1">
</frameset>
</frameset>
</html>
while in the file that sits in the left frame, something like
this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Some</title>
</head>
<body>
<div><a href="whatYouWishToSeeInTheRightFrame.html"
target="main">See me in right frame</a></div>
</body>
</html>
--
dorayme
[Back to original message]
|