Solved

Replacing top frame with new content

Posted on 2004-10-19
6
148 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Forbidden errors 5 107
How to analyze web traffic logs 10 90
Technology stack suggestions 4 60
Using YubiKey with REST API application 2 82
When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

17 Experts available now in Live!

Get 1:1 Help Now