All pages display in one page of the site

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
love-planet
Forum Newbie
Posts: 5
Joined: Sat Jun 06, 2009 7:54 am
Location: Tajikistan, Dushanbe

All pages display in one page of the site

Post 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
Last edited by love-planet on Sat Jun 06, 2009 10:01 pm, edited 1 time in total.
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: All pages display in one page of the site

Post 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
love-planet
Forum Newbie
Posts: 5
Joined: Sat Jun 06, 2009 7:54 am
Location: Tajikistan, Dushanbe

Re: All pages display in one page of the site

Post 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.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: All pages display in one page of the site

Post by kaszu »

Or you can use ajax.
Or does your question is how to change content.php content?
love-planet
Forum Newbie
Posts: 5
Joined: Sat Jun 06, 2009 7:54 am
Location: Tajikistan, Dushanbe

Re: All pages display in one page of the site

Post 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
love-planet
Forum Newbie
Posts: 5
Joined: Sat Jun 06, 2009 7:54 am
Location: Tajikistan, Dushanbe

Re: All pages display in one page of the site

Post by love-planet »

Hello!

Can anyone help me with my issue?!

Please, read my case in above given posts. Thanks
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: All pages display in one page of the site

Post by jayshields »

Read about AJAX, or just a simple CSS/JavaScript show/hide mechanism. More specifically jQuery UI can handle stuff like this.
love-planet
Forum Newbie
Posts: 5
Joined: Sat Jun 06, 2009 7:54 am
Location: Tajikistan, Dushanbe

Re: All pages display in one page of the site

Post 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.
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: All pages display in one page of the site

Post 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...
Last edited by Benjamin on Tue Jun 09, 2009 11:57 am, edited 1 time in total.
Reason: Changed code type from text to php.
Post Reply