Page 1 of 1

How to load only one part of a website?

Posted: Tue Jun 07, 2011 5:44 am
by nyo
Hi,

I was wondering if it is possible to load only a certain part of a page while browsing a website. I guess the following website is doing what I am trying to say:

http://www.hannahmarie.co.uk/

When you click on the navigation links (locations, treatments, etc.) the header, sidebar and footer stand still and only the content area loads (or not?). This is nice for faster navigating and lower bandwidth usae etc.

How can I do that?

Re: How to load only one part of a website?

Posted: Tue Jun 07, 2011 8:20 am
by EcazS
The page is loading it's just not very noticeable since it's so small in size.

But this is what they're doing,
[syntax=xhtml]
<a href="index.php?show=location">Location</a>
[/syntax]
So when you click that link the index file will show that specific content,
[syntax=php]
if(isset($_GET['show'])) {
//mysql_query to grab content from specified page using WHERE
//echo out content
}
[/syntax]

Re: How to load only one part of a website?

Posted: Tue Jun 07, 2011 11:44 am
by jacek
nailyener wrote:http://www.hannahmarie.co.uk/

Then you click a link the page does reload still, so this is just a simple template system. I have a tutorial on this which may be of some use.