Solved

frames

Posted on 1998-02-02
2
258 Views
Last Modified: 2012-06-27
I have a frames based page with a navigation frame on the left (A) and my main content frame on the right (B).  I would like to work a particular link in the A frame so that, when clicked, it loads a new page in the A frame AND a new page in the B frame.  I would like to avoid any Java or VB
code.  How can I do this?
0
Comment
Question by:lugeas
2 Comments
 
LVL 1

Accepted Solution

by:
jello earned 200 total points
ID: 1842822
The solution is to have the link in frame A use the TARGET="_top" attribute to exit the frame set.  It should call a modified version of the page containing your original frameset.  This modified version should have the correct pages you want to load in both frames.  The code will look something like this:

ORIGINAL DOCUMENT IN NAVIGATION FRAME:
<A HREF="modified_frame.html" TARGET="_top">link</A>

MODIFIED FRAME PAGE:
<FRAMESET COLS="*,*">
      <FRAME NAME="A" SRC="new_nav_doc.html">
      <FRAME NAME="B" SRC="content.html">
</FRAMESET>

(don't foget any frame attributes you might want like scrolling or frame border, etc...)

Your browser's back button will recover the original scenario. If you want your users to return to the original navigation tools in the A frame, you may want to adjust your links in the B frame to call the original frameset document.

Hope this helps
-jello
0
 
LVL 2

Expert Comment

by:nebworth
ID: 1842823
 Geez, I gotta hit the books again...
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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

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

11 Experts available now in Live!

Get 1:1 Help Now