Jump to content

New to ajax - loading specific divs


EchoFool

Recommended Posts

Hey,

 

I am new to ajax - and i believe my site has a decent structure with divs to allow the use of ajax.

 

My current lay out is:

 

header.php

middle body.php

footer .php

 

to sum up in html:

 

 

//header

<head>

</head>

<body>

<div>

banner image

</div>

 

//middle content

<div middle content>

</div>

 

//footer

<div> jquery menu </div>

 

 

What im trying to do with ajax is only have the "middle" content reload when a person clicks on "href" links. So that the menu does not reload nor does the top banner image....

 

Can some one show me a basic approach to how this is done - so i can then expand on that myself - once i see an explained example it tends to stick in my head easily.

 

Hope you can help.

Link to comment
https://forums.phpfreaks.com/topic/184127-new-to-ajax-loading-specific-divs/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.