Solved

linking to a page within a nested frameset

Posted on 2004-04-19
6
191 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spry missing in DWcc 6 315
unable to connect to host / dreamweaver cs3 11 157
Replace Dreamweaver with what? 8 166
Live mode in DW, need to creae Session 4 92
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 …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

13 Experts available now in Live!

Get 1:1 Help Now