Solved

linking to a page within a nested frameset

Posted on 2004-04-19
6
193 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
ID: 10862198
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
ID: 10869005
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
ID: 10870365
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
ID: 10996339
Did this answer your question?


Rockman
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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