English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i do not want my header and footer to reload each time they go on another page of my site. is there anyway I can have those stay and only body portion change. I have about 100 pages and I really want to save users time....

2006-06-18 21:16:43 · 3 answers · asked by desi 2 in Computers & Internet Programming & Design

3 answers

Hi the questions above are so absurd.

Yes, I like the way your thinking and it is the correct way of thinking. A static header is always better to have. BUT don't think it will save users time.

When you visit a website, the cache is stored on your system, so the page is saved, the photos cached. But there are two ways which you could do what you want. A better way is to leave them static.

If your using a dynamic scripting language like PHP/ASP/JSP/Etc. Then you can create a header.php and a index.php and a footer.php.
Within the index.php you will say include(header.php); and you have your body and then have include(footer.php); That is how every popular website uses. Google/Yahoo/Microsoft/ Myself :)

You don't have to worry about the header and footer since they don't change. But if you want to just reload the body on each link, then an alternative to frames would be using Javascript.

Javascript has AJAX, then when you click on a link or an area you can tell it to load a portion of the page only.
http://en.wikipedia.org/wiki/AJAX

Frames are depreciated for website programming. They are not used for a method like yours. They are used for other instnaces. But in your case it is not good to do it that way.

AJAX is the new buzz word which many people are using. It takes time to learn but it is powerfull. Imagine clicking on a link and only one portion of the page reloads :) That is nice

Good Luck.

2006-06-24 17:06:04 · answer #1 · answered by ? 6 · 0 0

U can use frames, u can use 3 frames, one for header, second one for footer and third one for "main content area"

2006-06-19 04:30:02 · answer #2 · answered by Sindhu 2 · 0 0

you can use frames... where only the 'body' frame would reload everytime the user goes to another page of the site...

2006-06-19 04:22:03 · answer #3 · answered by down2one_v 2 · 0 0

fedest.com, questions and answers