Forum Moderators: mack

Message Too Old, No Replies

Using an iframe for navigation?

I know frames are bad for many reasons - but what about an iframe for nav?

         

jetnovo

8:58 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Hi there

I know the use of frames has many negative consequences - including trouble with search engines, bookmarking pages, etc etc etc.

But I wonder - what about using an iframe to hold a navigation bar?

I've just finished a 52-page HTML site using Dreamweaver Templates and a javascript drop-down menu - however I've realized that if I make a change to the menu, I have to reupload all 52 pages. If I had the navigation in an iframe, I'd only need to upload it once.

Can anyone comment on this idea?

limbo

9:16 pm on Feb 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Jetnovo

I think SSI's might be a better solution. It uses the same concept you want, but the page is served as one using a script to 'nail on' the header each time a page is requested.

53 pages shouldn't take too long though unless you use dial-up for uploading files? That must be a nightmare!

jetnovo

11:13 pm on Feb 8, 2005 (gmt 0)

10+ Year Member



Hi Limbo

Thanks for your comments!

I've thought about SSI, however they seem very confusing! I've done maintenance on a collegue's site which includes SSI navigation, and to be honest was scared and confused the whole time! I'm okay with HTML and the Dreamweaver built-in javascripts, but SSI has my head spinning. To compound things, I think where this particular site is hosted (for example), SSI is unavailable (it's a special Internet/Hosting webspace for New Zealand schools).

Meanwhile, I do have broadband however my 52-page site is set up for use with Macromedia Contribute, so for each file I put online it takes forever also checking in/out.

Oh well!

mack

4:13 am on Feb 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



One major obsticle with using iframes for navigation is, do se spiders follow links within an iframe? Not 100% sure about that but worth looking into.

Mack.

philaweb

10:01 am on Feb 12, 2005 (gmt 0)

10+ Year Member



jetnovo,

First of all - SSI isn't complicated. It's just a line of code and an external file. There are some excellent tutorials out there with easy solutions. Google is your friend in this case.

Secondly - most Unix servers offers SSI as standard configuration. I've got SSI to work where the host didn't advertise with this function.

txbakers

1:11 pm on Feb 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I try to avoid frames of all sorts.

Corey Bryant

3:19 pm on Feb 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would agree - use SSI. I use ASP includes for my navigation and it works out.

All you need to remember - on the page you are including - you do not need to use the <HTML>, <BODY>, and <HEAD> tags since they will be pulled from the "main page"

Once you use these - you will love them. I use them for headers & footers as well (since clients tend to change these quite often as well).

-Corey

encyclo

6:57 pm on Feb 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One major obsticle with using iframes for navigation is, do se spiders follow links within an iframe? Not 100% sure about that but worth looking into.

A while back, I took on a site which used iframes for navigation, and it was nothing but trouble. There were large parts of the site which were unindexed (as the spiders couldn't find the links in the iframe), and certain framed menu pages were indexed in their own right, meaning that come visitors were entering the site on a page with just the menu and no content.

Server-side includes are the only way to go, either with SSI or with a more powerful alternative such as PHP or ASP (which will give you much more latitude in the future for further automating your page generation).

Gruntled

5:08 pm on Feb 13, 2005 (gmt 0)

10+ Year Member



Hey jetnovo. While you're probably more experienced at webmastering than I am, it sounds like you're in the same boat I was in last week (check out the thread on Static v. Dynamic below). I followed the links and advice in that thread and *love* the results I achieved by using PHP includes. I haven't quite figured out the whole bit qbout querying a db yet, but the includes work very well. I spent about half a day playing around with it before I figured it out. There's an excellent tutorial at Webmonkey. I don't know if I just violated the rules by referring to that site. If it gets edited just sticky me and I'll send you the URL.

jetnovo

8:19 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



Thanks everyone for your input - this is very helpful!
First, I've been able to rule out using iframes for navigation, which is good to know.
Second, I suddenly feel a whole lot less scared about SSI. I may dare to incorporate it into future sites (hosted elsewhere).
Third, thanks for the reference to tutorial sites, etc - hey look brilliant.
At this stage I'm generally okay with HTML and CSS, but have no experience beyond that (PHP, ASP, etc). It's good to know that it's not too terrifying!
Thanks again.