Solved

Question about switching framesets....

Posted on 1998-07-23
8
166 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
[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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
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 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)

729 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