Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

How to update only body part in the website ?

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

How to update only body part in the website ?

Postby premecorp » 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,
Premashish
premecorp
New php-forum User
New php-forum User
 
Posts: 18
Joined: Fri Nov 04, 2011 5:57 am

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

Postby Maven » 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
Maven
New php-forum User
New php-forum User
 
Posts: 7
Joined: Thu Feb 09, 2012 3:03 pm

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

Postby egami » Fri Feb 10, 2012 8:33 am

Study up on AJAX and innerHTML
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.