Solved

linking to a page within a nested frameset

Posted on 2004-04-19
6
190 Views
Last Modified: 2010-04-25
Im sure im not the first person to ask this but ive spent a few days trawling the web to no avail.
i want to create a banner to my site that will open a specific page which is located within the frameset. when i do a link it simply opens the page without the frameset, which is not what i am wanting.

the frameset structure is: index.htm, top.htm, bottom.htm, left.htm, right.htm and main.htm ( letterbox frameset where main is the content)

i want to be able to create a link ie: www.xxx.com/pages/bba.htm and for when the page is accessed directly to have it open in its frameset, im using dreamweaver mx with javascript to try and solve the issue.

Can anyone help?
0
Comment
Question by:winny57
  • 3
6 Comments
 
LVL 10

Expert Comment

by:rockmansattic
Comment Utility
if I understand correctly.  your banner is in top.htm and when you click it you want main.htm to go to a specific page?
 

<a href="goto.htm" target="main"><img src="banner.gif" width="500" height="100" border="0"></a>

change main to the name of the frame src in index.htm

rockman
0
 

Author Comment

by:winny57
Comment Utility
Sorry, i might not have made this very clear. the banner will be located uon another site, i want the user to be able to click on it and have link through to a page within the site. ie/bba.htm

if i do this with a link it normally opens the page without the framset, i want it to open the page within the frameset.

I hope this clarifys some more. i can post a url if thats needed to show what i mean
0
 
LVL 10

Accepted Solution

by:
rockmansattic earned 130 total points
Comment Utility
You are asking to do something that cannot be directly done.

This is one of the downsides of frames.

Remember, when you are viewing a page with frames, you are looking at the index.htm, which is only code.  It calls the other pages to be in the frames.

I guess you could somehow use php or vbscript to 'chech' if there is a certain variable in the link from the banner (i.e. http://here.com/index.htm?page=thispage.htm)
and if this exists, then automatically have that page load into the main frame.  

OR

If you are only going to have this one banner goto this one page (unique for the reason of simplisity)
You can create another frames page (index2.htm) and make the link from the banner go to this page.  This page would then load the pages you wish into the frames. I would not do this if you are planning on having several banners going to several pages.

Make sense?
<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame src="banner.htm" name="top" scrolling="NO" noresize>
  <frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
    <frame src="left.htm" name="lef" scrolling="NO" noresize>
    <frame src="goto.htm" name="main">
  </frameset>
</frameset>


0
 
LVL 10

Expert Comment

by:rockmansattic
Comment Utility
Did this answer your question?


Rockman
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

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now