Storagedump.com
02-17-2006, 09:18 PM
ok you know how on websites, sometimes there will be a navigation bar on the left, and its its own page. i think its shtml? and multiple pages would use it as a navigational bar. how can create a page like this? i know this is an easy operation if you can understand my poor wording :P
Konrad4
02-17-2006, 09:30 PM
Look up "iframe" on Google.
Storagedump.com
02-17-2006, 09:33 PM
hmmmmmmmm ill allow that is a helpful answer:P thanks
Premier
02-19-2006, 04:05 AM
With php you use include tags. The menu is it's own file and each page uses include to put the menu on it. When the menu is changed, you only need to change it once.
Real-Hosts
02-19-2006, 05:34 AM
Premier.
What he asked has nothing to do with the page generation as you speak of.
You need to use iframes,
if not iframes.. then I find it hard to think of anything cross-platform that will work well.
J.
Premier.
What he asked has nothing to do with the page generation as you speak of.
You need to use iframes,
if not iframes.. then I find it hard to think of anything cross-platform that will work well.
Actually, includes would also work. I've used this method on plenty of sites to include a menu or news information and so on. I don't see how this needs to be cross platform when it's on one server...and even so, if done in PHP, it should work on any server that runs PHP.
Real-Hosts
02-19-2006, 10:30 AM
Sorry,
I meant to mean cross-browser.
When I read the OP, I thought he meant a page, which looks like a single page, but when a menu is clicked, menu doesnt reload, but the main part of the section does. Thats either standard frames with no border, or iframes...
Hence why I said the include wouldnt work,
because thats on page generation.. In this case, the menu is already generated on display, and isnt generated again for the entire site visit.
Premier
02-19-2006, 05:26 PM
If he does want the menu to be there for good, it will require either frames or iframes.
He mentioned navigational bar being it's own page and shtml so I assumed he meant how is that done. If that's what he meant, then he does want either shtml or php and "includes" to include the separate menu page.
With php you use include tags. The menu is it's own file and each page uses include to put the menu on it. When the menu is changed, you only need to change it once.
make 2 *.php files and put such link in first file
<?php require_once ("2_nd_file.php"); ?>
or
<?php require ("2_nd_file.php"); ?>
or
<?php require_once ("2_nd_file.inc"); ?>
or
<?php include ("2_nd_file.php"); ?>