Page 1 of 1

How to update only body part in the website ?

Posted: Tue Jan 31, 2012 8:11 am
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

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

Posted: Tue Jan 31, 2012 8:59 am
by Celauran
Use PHP includes or templating.

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

Posted: Wed Feb 01, 2012 4:14 am
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.

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

Posted: Wed Feb 01, 2012 5:56 am
by Celauran
Use the same includes in all your pages.