?
Solved

How do you link from a non-frameset page to a frameset page and get the entire frame.

Posted on 2003-10-23
9
Medium Priority
?
270 Views
Last Modified: 2010-04-09
I have a website that was created using frames, which I'm working on removing.  However, I created a new section of our site that has no frames.  Now, I need to link from the new section (no frames) to a page in a frameset.  How do I get this page with it's frameset?
0
Comment
Question by:ballshar
[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
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 4

Expert Comment

by:apprenti
ID: 9609567
<a href="fullpage.htm" target="_top">fullpage</a>
0
 
LVL 4

Expert Comment

by:apprenti
ID: 9609624
That's to go from a frameset page to a normal page.

To from a normal page to a frameset, just link to the frameset which contains the page concerned.

<a href="myframeset.htm">frameset</a>.

0
 

Author Comment

by:ballshar
ID: 9610069
index.htm is not a frameset - but this is were we link FROM

TO

page1.htm

The frameset is called main.htm which also includes left.htm which is the navigation menu.
In the main.htm frameset there maybe 20 files linked in the left.htm of the frameset.  page1.htm
page2.htm
page3.htm
etc...
How can I create a link from index.htm to page1.htm that will bring up the frameset of main.htm? Is there a quick solution or javascript I can use?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 4

Expert Comment

by:apprenti
ID: 9610257
Doc Javascript covers this sort of thing:

http://www.webreference.com/js/tips/001016.html
0
 
LVL 7

Expert Comment

by:Xxavier
ID: 9611578
I am not understanding you do mean  by "create a link from index.htm to page1.htm that will bring up the frameset of main.htm?" ie bring up the main.htm frame set with page1.htm displayed in the frame set.
0
 
LVL 10

Accepted Solution

by:
NetGroove earned 1000 total points
ID: 9612779
All twenty html pages with the names page1.htm, page2.htm and so on, has to be extended in the header of the page.
You need in the header of those pages this script:
<SCRIPT>
if (window == top) {
  thisPage = window.location.href.split("/");
  top.location.href = "main.htm?left="+thisPage[thisPage.length-1];
}
</SCRIPT>


And the main.html needs this extention:
<html>
<head>
<script>
var leftSrc = "page1.htm";
if (window.location.search){
  page = window.location.search.split("left=");
  if(page.length>1){
    leftSrc = page[1];
  }
}
</script>
</head>
<frameset cols="20%,*" onLoad="window.left.location=leftSrc">
<frame name=left>
<frame name=right src="right.htm">
</frameset>

That's all.

Good luck,
NetGroove

0
 
LVL 1

Expert Comment

by:dsyn
ID: 9631018
At javascript.internet.com , They have the perfect code: http://javascript.internet.com/navigation/dynamic-frameset.html
0
 
LVL 10

Expert Comment

by:NetGroove
ID: 9636186
Thanks for the points.
0
 

Author Comment

by:ballshar
ID: 9636420
As always - that worked!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…
Suggested Courses

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