Solved

Question about switching framesets....

Posted on 1998-07-23
8
161 Views
Last Modified: 2010-04-09
Is there a way I can specify a button to open a specific page on a different frameset than the one I'm using?

Let's say, I'm on frameset A with 3 panes, and I click on a button on the left pane.  I want that button to open a specific page (other than the default page), on frameset B which only has 2 panes.

Can I do this with the java buttons?

Thank you.
0
Comment
Question by:beorn
  • 4
  • 2
  • 2
8 Comments
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1844834
Yes...in your <a href="yourpage.htm"> make it look like this:
<a href="differentpane.htm" target="panename">link</a>

That will load the page in the frame of your choice...just replace panename with the name of the frame...this should do the trick.
0
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1844835
Here is an additional link just in case that is unclear....

http://webhelp.org/frames/index2.htm

0
 

Author Comment

by:beorn
ID: 1844836
That just opens a page in a given frame.  What I need to do is open a different frameset while I'm on one.

I need it to load a frameset, a specific page(other than the default one that loads with the frameset), and substitute the frameset I'm using.

Thanks.
0
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1844837
OK...here is what you can do...this is crude but it will work...

add this into the newframeset.htm page...

<script language = "Javascript">

if (top.location != location) top.location.href = location.href;

</script>

This will break you out of your old frameset and load the totally new one...
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 28

Expert Comment

by:sybe
ID: 1844838
Do you mean, open a page in a frameset which is in a different window ?
0
 

Author Comment

by:beorn
ID: 1844839
Actually it's quite complicated. I have frameset "A" with a "top", left and main frame.

Everything on the top frame willl open in the main frame.  The links on the "left" frame must open specific pages on a frameset "B" (which only has 2 frames, "left" and "main").

What I need to know is how I get rid of the "top" frame when I click on the links at the left?

I don't want the links at the left open in the nested "main" window of the frameset "A".

I tried the javascript above from Sir Caleb, on the frames page B, but nothing happens.

Thanks for your patience. :-)
0
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1844840
<a href="frameset_B.htm" target="_top">
0
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1844841
Hrmm...I use that script a lot because I know that if somebody else links their site to mine and the link is in a frameset, my frameset will show up within their frameset...that script essentially "breaks" you out of the frames that are already loaded when you enter a page...it might only work w/ certain browsers...
Your right...that is a complicated problem....I've now got a clear picture in my mind what it is your trying to do...tricky...
Sybe's answer will probably work...I've never really tried that before...frames are just plain tricky...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 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

10 Experts available now in Live!

Get 1:1 Help Now