Web Design Forums

General Web Design Discussion

Have general questions about web design? Need help figuring out how to lay your site out, what style to use or how to make an image? Need help picking between photos for your homepage? Post your question here!

Frames Navigation Dilemma



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old June 22 '05, 11:41 AM (#1)
Wolf_ODonnell is offline
New Member!
 
Wolf_ODonnell's Avatar
 
Join Date: June 2005
Posts: 19
Wolf_ODonnell is on a distinguished road
Frames Navigation Dilemma

I know frames are pretty much outdated and loathed, but our site currently contains frames.

We use it to keep a navigation bar on the screen at all times, so that users can click on the links in the navigation bar to get away from whatever it is they're viewing.

Unfortuately, because of the fact the site is in frames, the main site administrator has it set such that every clicked link has a base target of "_parent" and clicking on a link takes you to another framed page that contains the same navigation bar and the new page.

(Say, the link was a link to a comics section. Clicking on the link, loads a new frames page containing the navigation bar in one frame and the comics page in the other).

The reason for this, or so he says, is so that people who enter the site from links they find on a search engine like Google, when clicking on a link will always regain the use of the navigation bar.

In my opinion, this defeats the purpose of frames, which I see as a tool to keep the navigation bar permanently on screen without refreshing it.

As you can imagine, the server is filled with HTML files that are nothing more than frames pages, holders for the contents, and it's starting to get on my nerves, especially now that I'm implementing CSS.

(Maybe it's best if you see the site for yourself. It's at http://www.starwing.co.uk. See how the frames refresh with every click of the link? I'm assuming that's very annoying for dial-up users and the loading time for the updates page is also pretty long too).

Now that the background's under way, let me ask the questions.

I'm looking for a new way to set up the site. I want to ensure that a navigation bar will always be on screen, so that the visitor can use it, without using frames but also in such a way that if I want to add links to the navigation bar, all I have to do is add links to one file, instead of several files all containing copies of the navigation bar code.

Is there a simple way to do this, preferably not using server-side script (since I work on the site offline and hence must have offline access to the navigation bar)?

Next, if there is no viable method of doing this without using server-side script, is there a way of reloading the page for visitors that do not enter the site via the main page (and thus do not have the navigation bar loaded) such that the frames page with the navigation bar is loaded?

I realise that this post may seem quite complicated and long-winded, so if you need clarifying, please don't hesitate to ask. Thank you for taking the time out to help me.

Last edited by Wolf_ODonnell; June 28 '05 at 12:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '05, 03:47 AM (#2)
seanmiller is offline
WDF Senior Member
 
seanmiller's Avatar
 
Join Date: September 2003
Location: Glastonbury, UK
Posts: 867
seanmiller will become famous soon enoughseanmiller will become famous soon enough
Send a message via AIM to seanmiller Send a message via MSN to seanmiller
That's the problem with frames... you run the risk of your content being indexed by a search engine directly thus bypassing the outer frame page with the navigation...

You talk about working on the site "offline" and hence having to have offline access to the pages... have you considered installing a webserver on your own machine?

There's a very light webserver for Windows that supports SSI etc. called BRS Webweaver...

http://www.brswebweaver.com/

You would then split your HTML code into sections (the navigation being one) and include those sections into each of your pages.

Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '05, 04:59 AM (#3)
Wolf_ODonnell is offline
New Member!
 
Wolf_ODonnell's Avatar
 
Join Date: June 2005
Posts: 19
Wolf_ODonnell is on a distinguished road
Quote:
Originally Posted by seanmiller
That's the problem with frames... you run the risk of your content being indexed by a search engine directly thus bypassing the outer frame page with the navigation...

You talk about working on the site "offline" and hence having to have offline access to the pages... have you considered installing a webserver on your own machine?

There's a very light webserver for Windows that supports SSI etc. called BRS Webweaver...

http://www.brswebweaver.com/

You would then split your HTML code into sections (the navigation being one) and include those sections into each of your pages.

Sean
Well, when I said work offline, the main computer on which most of my files is not connected to the Internet. To upload files, I use a USB memory stick to transfer the files to a computer that does have Internet access.

But yes, your solution does seem to make it possible for me to use server-side code now. (If only I knew some).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '05, 02:11 PM (#4)
Shadowfiend is offline
Code beautifully and honorably
 
Shadowfiend's Avatar
 
Join Date: June 2005
Location: Atlanta, GA
Posts: 4,143
Shadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond reputeShadowfiend has a reputation beyond repute
Server-side includes like what seanmiller mentioned are just one-liners that let you include one page in another. They usually look like `<!--#include file="filename"-->' or something similar. PHP is also very easy to use as regards includes, since for PHP it's just `<?php include('filename'); ?>'. Using PHP will probably require a more heavyweight server like IIS or Apache, however.

Really, if you just include one file from another, you don't actually need to run a webserver. You can edit the pages separately, and then put them on the server whenever you feel like it. Sure, you lose the ability to see what it'll look like when the pages are all thrown together, but it's usually fairly easy, especially when you just put a navbar with a main content area, to visualize it yourself.

Plus, whenever you want to look at them together, you can always make a test page and replace the include directive with the code from the other page, and then look at it as plain HTML.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Web Design Help » General Web Design Discussion

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 01:52 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164