Solved

Replacing top frame with new content

Posted on 2004-10-19
6
151 Views
Last Modified: 2010-05-18
I have a simple question regarding FRAME targeting but can't find an answer.
I have three frames: top, nav, and content. Top take the entire top of the page.
Nav is a nav frame on left side below top.
Content is a content frame on right side of page below top.
http://bohappa.net to see it.

In the top frame, I have tabs, pictures, that act as links. These links replace the nav and content frames, but ALSO should replace content in the top frame.
This is the problem. I can't find a target value that replaces the page in the top frame also. When I click a tab, the image used as the tab should also change.
I have tried the following, using target=_parent to replace entire frameset, but it doesn't really replace the top frame:

<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="2" width="46%"><img src="/images/Reeves3.gif" width="489" height="83"></td>
    <td height="2" width="17%" align="left" valign="bottom">
      <div align="center"></div>
    </td>
    <td height="2" width="11%"><img src="/images/tabFamily.gif" width="125" height="80"></td>
    <td height="2" width="11%"><img src="/images/tabAnnGray.gif" width="125" height="80"></td>
    <td height="2" width="11%"><img src="/images/tabBellaGray.gif" width="125" height="80"></td>
    <td height="2" width="4%"><a href="paul/indexpaul.htm" target="top"><img src="/images/tabPaulGray.gif" width="125" height="80" border="0"></a></td>
  </tr>
</table>
I guess I could use Javascript for this but I thought there was a simple way using frames to do this.
0
Comment
Question by:bohappa
  • 3
  • 2
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12348794
You can use "_self", but that is the default so if you do not specify any target the new content loads into the frame containing the link.

Cd&
0
 

Author Comment

by:bohappa
ID: 12349970
COBOLdino,
I changed the target to "_self" as you suggested, but it didn't work. I actually had tried that and I just tried not specifying a target at all.
You can see for yourself the results, but basically, it doesn't help.
Hmmm...are other people doing this in different ways, I wonder?
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 125 total points
ID: 12350177
The problem is not the target.  If I load just indextop1.htm into the browser, and click the link it is still loading the frameset.  You have files named wrong.

Cd&
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Expert Comment

by:ranjfoad
ID: 12355237
use the name of the top frame in the target , target="banner"
0
 

Author Comment

by:bohappa
ID: 12356489
Ty, Coboldino, for pointing out the error in my page and reaffirming the correct answer. using _self does do the trick, once I corrected my other mistake.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12357504
Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question