Page 1 of 1

All pages display in one page of the site

Posted: Sat Jun 06, 2009 7:59 am
by love-planet
Hello, dear community!

Please, help me with my problem.

The problem is the following:

I want to make a page having many links in its menu and when you click on a link, link should display its page in the page named content and all the other links should display their pages in content page IN CASE if you click on an appropriate link. All pages must not be displayed at once in the content page – only when they are required by clicking on their link.

Just imagine: There is a web site and the main page is index.php

We will use including method and index.php will be constructed by including top.html or (top.php), menu.html or menu.php, content.php and footer.html

All links in menu should be displayed in content.phpwhen you click on a definite link in menu.

Please, try to give more detailed explanation as much as possible. Thank you very much for your support.

Sincerely, love-planet

Re: All pages display in one page of the site

Posted: Sat Jun 06, 2009 9:16 am
by akuji36
Iframes will help you.

List you links in ordered list on left, right or

bottom, or top of new window. Each link

will have a target equal to the name of your

new window. So if your iframe is named carryover.html

the target will be "carryover.html".

Rod

Re: All pages display in one page of the site

Posted: Sat Jun 06, 2009 9:35 am
by love-planet
Thank for your response. i am much appreciated to you for your support.

I experienced iframes in my site, but I am eager to know if there any other method of displaying pages in one page in php programming.

But i want to use php method of displaying pages in one page.
Please, if possible, help me.

Re: All pages display in one page of the site

Posted: Sat Jun 06, 2009 12:28 pm
by kaszu
Or you can use ajax.
Or does your question is how to change content.php content?

Re: All pages display in one page of the site

Posted: Sat Jun 06, 2009 10:06 pm
by love-planet
Thank you, very much for response.

Will you please to tell me about ajax method of displaying pages in one content page? Please, be more detailed, 'cause I am a newbie in web programming.

Thanks

Re: All pages display in one page of the site

Posted: Mon Jun 08, 2009 4:19 am
by love-planet
Hello!

Can anyone help me with my issue?!

Please, read my case in above given posts. Thanks

Re: All pages display in one page of the site

Posted: Mon Jun 08, 2009 5:12 am
by jayshields
Read about AJAX, or just a simple CSS/JavaScript show/hide mechanism. More specifically jQuery UI can handle stuff like this.

Re: All pages display in one page of the site

Posted: Mon Jun 08, 2009 7:35 am
by love-planet
jayshields wrote:Read about AJAX, or just a simple CSS/JavaScript show/hide mechanism. More specifically jQuery UI can handle stuff like this.
Thank you very much for your response.

Re: All pages display in one page of the site

Posted: Mon Jun 08, 2009 5:31 pm
by akuji36
I think you may be referring to what is called a PHP Include.

Using php you place another page inside of the page by using an include.

follow this link: http://www.tizag.com/phpT/include.php


php include code looks like this:

Code: Select all

<?php include("menu.php"); ?>
 
The included page can be another php file or even an html file...