Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

linking to a page within a nested frameset

Posted on 2004-04-19
6
Medium Priority
?
201 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
4 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 520 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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 …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

783 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