473,395 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Newbie question regarding Menuing

Greetings all

I know there are a couple of threads on this topic already--I have read
they both, but I need a little clarification on process.

I currently have a static XHTML page that consists of:
Banner area
......Weather Info
......Flash Banner
......Event Calendar

Left Bar
......Menu
......Message Scroller
......Counter

Content Area
......iframe to hold this

Right Bar
......About us

Copyright Notice

B a n n e r
Left | Content | Right
C o p y r i g h t

I have created a banner.php, leftbar.php and copyright.php . These
files are referenced in an index.php

<div id="bannerarea">
<div id="weather"<?php include("weather.php"); ?</div>
<div id="banner"<?php include("banner.php"); ?</div>
<div id="calendar"><script type="text/javascript"
src="calendar.js"></script></div>
</div>
<div id="copyright">
<?php include("copyright.php"); ?>
</div>
<div id="contentarea">

<div id="leftbar">
<div id="menu"><?php include("menu.php"); ?></div>
<div id="message"><script type="text/javascript"
src="scroller.js"></script></div>
<div style="bottom:1%;position:absolute;"><?php
include("counter.php"); ?></div>
</div>
</div>
<div id="content">
<?php include(" **Changable Content Here**"); ?>
</div>
</div>

I would like to have a user click on the appropriate menu button and
have the Content div populated. What I read in the long thread on this
topic was to use <a href="index.php?content=news.php>News</a>. And now
the source of my confusion.

1) Does using this format require the creation of a page for each menu
item?

2) The example in the thread does not tell me how the "content=" command
directs the output to the correct div.

3) Is there another way?

As a side note, this is an interim solution while I get a CMS site
designed. Unfortunately, this page is volunteer work so it only gets
attention as other realities allow.

Any assistance would be appreciated, and my apologies for not getting it
the first time...

David
Jun 2 '08 #1
1 1226
Matthew Baker wrote:
Greetings all

I know there are a couple of threads on this topic already--I have read
they both, but I need a little clarification on process.

I currently have a static XHTML page that consists of:
Banner area
.....Weather Info
.....Flash Banner
.....Event Calendar

Left Bar
.....Menu
.....Message Scroller
.....Counter

Content Area
.....iframe to hold this

Right Bar
.....About us

Copyright Notice

B a n n e r
Left | Content | Right
C o p y r i g h t

I have created a banner.php, leftbar.php and copyright.php . These
files are referenced in an index.php

<div id="bannerarea">
<div id="weather"<?php include("weather.php"); ?</div>
<div id="banner"<?php include("banner.php"); ?</div>
<div id="calendar"><script type="text/javascript"
src="calendar.js"></script></div>
</div>
<div id="copyright">
<?php include("copyright.php"); ?>
</div>
<div id="contentarea">

<div id="leftbar">
<div id="menu"><?php include("menu.php"); ?></div>
<div id="message"><script type="text/javascript"
src="scroller.js"></script></div>
<div style="bottom:1%;position:absolute;"><?php
include("counter.php"); ?></div>
</div>
</div>
<div id="content">
<?php include(" **Changable Content Here**"); ?>
</div>
</div>

I would like to have a user click on the appropriate menu button and
have the Content div populated. What I read in the long thread on this
topic was to use <a href="index.php?content=news.php>News</a>. And now
the source of my confusion.

1) Does using this format require the creation of a page for each menu
item?

2) The example in the thread does not tell me how the "content=" command
directs the output to the correct div.

3) Is there another way?

As a side note, this is an interim solution while I get a CMS site
designed. Unfortunately, this page is volunteer work so it only gets
attention as other realities allow.

Any assistance would be appreciated, and my apologies for not getting it
the first time...

David
That's a way to do it if you're using one of several CMS's. there are
many other ways. For instance, if you have individual pages, you could
just put the link to "mynewpage.php". You could create AJAX requests
and populate the area (see comp.lang.javascript). There are other ways,
also, depending on what other CMS you're using.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: Raymond Hettinger | last post by:
Based on your extensive feedback, PEP 322 has been completely revised. The response was strongly positive, but almost everyone preferred having a function instead of multiple object methods. The...
4
by: Porty | last post by:
Hi all, I admittedly don't know the first thing about .NET. I have a new client who has been having problems on her website and asked me to look into it (she has lost contact with the programmer...
14
by: Stan Brown | last post by:
I posted over the holidays, but I venture to repost since there were no responses. Maybe people overlooked my article among all the excitement. I'm looking for a template or model for menus that...
1
by: cracker23 | last post by:
Hey everyone, I'm currently in the process of working with a vendor to build a mobile phone application. I have a few questions regarding the actual architecture of these apps that I'd appreciate...
1
by: guncrew | last post by:
Hello I am starting to use Python. I found a nice little example for subsituting and splitting texts and counting words separated by defined expressions (in the example , and blanks). Unfotunately...
2
by: clouddragon | last post by:
Hi, i am in desperate need for any help regarding one of my assignments. I am to write a python program that lists the numbers that are composite from 1 to n(input) and write it to an external...
5
by: SharkD | last post by:
Hi! I'm a total newbie when it comes to ASP (or any type of server-side programming). I want to start a project that does the following: 1. query Wikipedia for information regarding...
0
by: Albert-jan Roskam | last post by:
Hi John, Thanks! Using a higher xlrd version did the trick! Regarding your other remarks: -yep, input files with multiple sheets don't work yet. I kinda repressed that ;-) Spss outputs only...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.