Bryan Heit <bj****@NOSPAMucalgary.cawrote in
news:el**********@news.ucalgary.ca:
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 the sidebar?
Sure. Do away with frames that have problems associated with them.
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?
Tables are no use either, they should only be used for tabular data.
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.
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
php.
Thanx
Bryan
--
Stan McCann, RETIRED!!, "Uncle Pirate"
http://stanmccann.us/
Implementing negative score for googlegroup postings, see
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein