I need to get ajax so that when these links are clicked it reloads the php in the include. I'm not sure how to do this though. <ul id="catBack" class="closeCrossRem"> <a href="/linkhere.php?category=Action">Action</a> <a href="/linkhere.php?category=Action">Action</a> <a href="/linkhere.php?category=Action">Action</a> </ul> HTML: Thanks
What exactly do you want to do? What do you want to fetch and how do you want to display it in the document? Do you have a one div set aside where the result will appear, no matter which link is clicked?
Yeh, I will have one div with a default, then if those links are clicked it does the query in the link and then displays the new results without refreshing the page. Abit like the featured, leaderboard, newest, etc on MostPlays.com homepage.
How will you build the markup? You can create the markup on the server side with PHP and then send it back as the ajax response or you can just send the "raw" data back and then build the markup with javascript. Answer that and I'll try to give you a simple example.