?
Solved

Question about switching framesets....

Posted on 1998-07-23
8
Medium Priority
?
167 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

764 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