HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Making a URL link for specific frame combination
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
EdB



Joined: 28 Sep 2007
Posts: 3

PostPosted: Fri Sep 28, 2007 8:12 pm     Making a URL link for specific frame combination Reply with quote

I've set up a website using frames. The left side is a menu, the larger right side is the content. The opening page (the "index.htm" file) brings up the menu and a welcome page. Click on one of the menu items and you're taken to a submenu. Click on an item in the submenu and you're taken to that content. All this works as expected. Each content has its own HTML page.

What I didn't expect is, I don't get a connectible URL with the content; the link remains at the submenu (or menu).

What I want to do is send someone a direct link to a specific menu/content combination. Now I can only take them to a menu and tell them to click on a link.

How do I set up a link to a specific frame combination?

Thanks for any help!
Ed

PS: If you want to take a look at the site, follow this link: www.edbrownson.net
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Sat Sep 29, 2007 11:40 am     Reply with quote

I am guessing you are naming the frames, i.e.
Code:
frame name="nav"
and then you target that frame name
Code:
<a target="nav"
but I would steer clear of frames for all purposes.

_________________
Corey
Toll Free Numbers | SiteMaps for Search Engines
EdB



Joined: 28 Sep 2007
Posts: 3

PostPosted: Sat Sep 29, 2007 12:46 pm     Reply with quote

Corey, thanks for the reply. Yes, all the pages (frames) are named, but I'm not specifically referencing them.

The top menu connects to the categories "essays", "plays", etc and are direct links. Here's sample code:
Code:
<a href="eb_essay.htm" target="_top">
Essays</a><br>


The second menu (in this case, "essays") goes to the specific articles, and these are what I want to be able to link to directly:
Code:
<a href="eb_essay_NY2001.htm" target="main">Autumn In New York</a><br>


I'm a writer, not a page designer and I've spent way too much time developing this site and not enough writing. I'd really rather just make it work than learn a new system if possible.

Any suggestions?
Thanks,
Ed

PS: You can find the site here:
www.edbrownson.net
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Sat Sep 29, 2007 1:24 pm     Reply with quote

Basically, a frame will consist of at least three pages: navigation page, content page and then a page that brings them all together:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 1</title>
</head>

<frameset cols="150,*">
   <frame name="contents" target="main">
   <frame name="main" target="main">
   <noframes>
   <body>

   <p>This page uses frames, but your browser doesn't support them.</p>

   </body>
   </noframes>
</frameset>

</html>
Or it could contain a four pages, the navigation, header, content, and then the page that brings them together:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 2</title>
</head>

<frameset rows="64,*">
   <frame name="banner" scrolling="no" noresize="noresize" target="contents">
   <frameset cols="150,*">
      <frame name="contents" target="main">
      <frame name="main">
   </frameset>
   <noframes>
   <body>

   <p>This page uses frames, but your browser doesn't support them.</p>

   </body>
   </noframes>
</frameset>

</html>
Using frames - especially for a beginner - is a lot more work.

it seems that you are wanting to create something for your essays, plays, reviews, etc? So if someone clicks on essays, a new window (along with new frames) would open up?

_________________
Corey
Toll Free Fax Numbers | Mile High Merchant Accounts
EdB



Joined: 28 Sep 2007
Posts: 3

PostPosted: Sat Sep 29, 2007 2:52 pm     Reply with quote

Quote:
it seems that you are wanting to create something for your essays, plays, reviews, etc? So if someone clicks on essays, a new window (along with new frames) would open up?


Corey, the website is a home for my various scribbles (with the exception of "Too Stupid To Die" which is a WordPress powered blog I just set up to blog about some medical travails I'm going through).

But it's not designed to open up multiple windows but the opposite. I set the website up with the frames so that everything would stay neatly in the same browser window. Go to the page (edbrownson.net) and you're met with a two frame setup that doesn't change except when you click on a link. Click on a link in the left menu, and you go to either another menu (Essays, say) then click on one of the list of essays and it opens up in the larger frame on the right. The menu frame and content frame stay consistent throughout.

You'll probably hate this part (I do!) but I used M$FT's FrontPage 2000 to create the website and then tweaked the HTML. I'd've rather used Dreamweaver but it was expensive and I got FP bundled with Office a long time ago.

This problem really surprised me. I put a lot into making sure the two-frame approach was reasonably bulletproof, had friends test it on a variety of computers/browsers, etc. Last thing I expected was not being able to link directly to a page!

Thanks,
Ed
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Sun Sep 30, 2007 2:14 pm     Reply with quote

EdB wrote:
Go to the page (edbrownson.net) and you're met with a two frame setup that doesn't change except when you click on a link. Click on a link in the left menu, and you go to either another menu (Essays, say) then click on one of the list of essays and it opens up in the larger frame on the right. The menu frame and content frame stay consistent throughout.
OK - I did that, clicked on Essays and I see a new site with frames:
Code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Ed Brownson</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<frameset framespacing="0" border="0" cols="162,*" frameborder="0">
  <frame name="contents" target="main" src="eb_essay_menu.htm" scrolling="no" noresize marginwidth="0" marginheight="0">
  <frame name="main" src="eb_essay_current.htm" target="_self" scrolling="auto" noresize>
  <noframes>
  <body topmargin="0" leftmargin="0">

  <p>This page uses frames, but your browser doesn't support them.</p>

  </body>
  </noframes>
</frameset>

</html>
Now what exactly is not supposed to happen. Walk me through it and we can do it.
EdB wrote:
You'll probably hate this part (I do!) but I used M$FT's FrontPage 2000 to create the website and then tweaked the HTML. I'd've rather used Dreamweaver but it was expensive and I got FP bundled with Office a long time ago.
Actually no. I am / was a Microsoft MVP for Frontpage, and it seems I might have been 'promoted' to Microsoft Expression Web MVP. I help run Expression and Frontpage Forum, I am a moderator on Frontpage Talk and have a Sage rating in Frontpage on Experts Exchange. I also do a Expression Web Blog on the side.

_________________
Corey
Toll Free Fax Numbers | Yahoo Merchant Account
cgreen1



Joined: 16 Sep 2008
Posts: 1

PostPosted: Tue Sep 16, 2008 10:16 am     Making a URL link for specific frame combination Reply with quote

I have exactly the same problem.
Given: somepage.aspx
and: index.htm - a page with frames
and: Topic1.htm - a specific topic that can be accessed from the menu in the left-hand frame of index.htm and displayed in the right-hand frame.

If I open index.htm directly I get the menu and "Welcome", the default topic, in the right-hand frame. I can click on Topic1 and Topic1.htm opens in the right hand frame.

I want a hyperlink on somepage.aspx that goes directly to index.htm with Topic1.htm loaded up in the right-hand frame.

(index.htm is the output from my help authoring product. It's format is fixed. I want to link directly to the help topic for the specific page.)

I can go directly to index.htm but I don't get the topic I want. I can link directly to topic1.htm but then I don't have the index on the left.

What do I code to link to index.htm with topic1.htm??
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial