Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Beginner Q
- Bryan Heit
December 5, 2006, 3:23 pm
rate this thread
I have a beginner question. I'm working on a page which is using
frames; basically there is the main "window" and a side-bar, each of
which is a separate frame. I was wondering if there was some way to
"link" these frames such that scrolling the main page would also scroll
If not, is there someway to setup the page as a table, and "call" the
HTML code for the sidebar from a second HTML file?
The reason I want to do this is that the sidebar will be frequently
updated, and I don't want to have to change code on dozens of pages
every time the sidebar code changes.
Re: Beginner Q
Sure. Do away with frames that have problems associated with them.
Tables are no use either, they should only be used for tabular data.
There are several ways to include one file in another so that you will
only need to update one. Find out if the host your page is on has SSI
(Server Side Includes) available. I don't remember the syntax off hand
as I do it using php. A Google search on SSI or includes should get
you that syntax.
If no SSI, how about php? It's a fairly simple to learn programming
language that allows you to place code in web pages; your pages must
have a php extension rather than html so that the server knows to
process using php. Then, in your HTML (php now) file, you insert:
"<?php include('nav.php') ?>" where your navigation begins, assuming
your sidebar contains navigation. nav.php is the file name that you
wish to include; the php extension on this file is not necessary but I
usually keep it as that because most of my included files also contain
Stan McCann, RETIRED!!, "Uncle Pirate" http://stanmccann.us /
Implementing negative score for googlegroup postings, see
A zest for living must include a willingness to die. - R.A. Heinlein