Solved

Replacing top frame with new content

Posted on 2004-10-19
6
149 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to make similar contact form? 8 65
Clean URL from GET variables 2 93
Magento Indexing 1 89
Coova-Chilli can't work with URL using HTTPS! 3 163
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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…

861 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now