Solved

linking to a page within a nested frameset

Posted on 2004-04-19
6
194 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
[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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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