?
Solved

Replacing top frame with new content

Posted on 2004-10-19
6
Medium Priority
?
167 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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…
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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 the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Suggested Courses

771 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