Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Replacing top frame with new content

Posted on 2004-10-19
6
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

604 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