How to update only body part in the website ?

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

Moderator: General Moderators

Post Reply
premecorp
Forum Newbie
Posts: 15
Joined: Fri Nov 04, 2011 9:12 am

How to update only body part in the website ?

Post by premecorp »

Hello Friends,
I have design a html page, it has five different parts like header, left panel, right panel, footer and body. All are common except the body, only body should be change when I click any menu or button, I dont want to use the common page code in every page. Iframe is there but iframe is not supported by every browser. So what is the alternate way to achieve this. If anyone has good idea about that kindly help me.

Thanks & Regards,
Premashish
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to update only body part in the website ?

Post by Celauran »

Use PHP includes or templating.
premecorp
Forum Newbie
Posts: 15
Joined: Fri Nov 04, 2011 9:12 am

Re: How to update only body part in the website ?

Post by premecorp »

Thanks for responding, I have done this by using php include() function. But I have used hyperlink in menus and when I click that menus it goes to specific page only without any common content. So how to call page in hyperlink in specific place.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: How to update only body part in the website ?

Post by Celauran »

Use the same includes in all your pages.
Post Reply