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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.