How to update only body part in the website ?

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 16
Joined: Fri Nov 04, 2011 5:57 am

Tue Jan 31, 2012 6:10 am

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,

User avatar
New php-forum User
New php-forum User
Posts: 7
Joined: Thu Feb 09, 2012 3:03 pm

Fri Feb 10, 2012 8:23 am

Other then iframe, I don't think there is anyway to do it with simple html. Which you're right in saying it's not supported much. The best way I know to achieve what you want is with PHP. Either by including the header/footer and/or using functions to call the menus where you need them in your page.

User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Fri Feb 10, 2012 8:33 am

Study up on AJAX and innerHTML

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests